case classSessionAuthenticationStrategy(sessionKey: String = "principal")(implicit executor: ExecutionContext) extends AuthenticationStrategy with ResponseBuilder with Product with Serializable
An AuthenticationStrategy that retrieves a Principal from the current session.
This Principal is then added to the request for downstream processing.
The Principal must be set on the session by some step handled external to this class,
for example a login page.
If no Principal is set on the current session then a 401 is returned.
There must have been an appropriately configured SessionManager in the endpoint before
authentication is attempted.
sessionKey
is used to specify the key that the Principal is stored in inside the session.
Linear Supertypes
Serializable, Serializable, Product, Equals, ResponseBuilder, AuthenticationStrategy, AnyRef, Any
An AuthenticationStrategy that retrieves a Principal from the current session. This Principal is then added to the request for downstream processing.
The Principal must be set on the session by some step handled external to this class, for example a login page.
If no Principal is set on the current session then a 401 is returned.
There must have been an appropriately configured SessionManager in the endpoint before authentication is attempted.
is used to specify the key that the Principal is stored in inside the session.