Using SecuredRequest with ActionRefiner


Hello, I’m having trouble understanding how I might change the SecuredRequest class into another Request class. I would normally use the ActionRefiner trait to do this, but I’m not well-versed enough in the type system to understand how to get this to work.

I’m essentially trying to chain off of the silhouette.securedAction() call with andThen to transform the request after authorization by using an ActionRefiner, but the mis-matching generic signatures is throwing me off and I’m having trouble getting them to work together.

Could somebody show me a code sample of how to go about doing this?