is used to specify the key that the Principal is stored in inside the session.
Authenticate must either return a Scala Try with the result of the authentication.
Authenticate must either return a Scala Try with the result of the authentication. If the authentication was successful then it should return a Success of Principal. Otherwise it should return a Failure with some exception indicating the failure.
Returns an AuthenticationFailureHandler which is invoked with the result of authenticate if the authentication process fails.
Returns an AuthenticationFailureHandler which is invoked with the result of authenticate if the authentication process fails.
By default, a DefaultAuthenticationFailureHandler is returned which returns a Http 401.
is used to specify the key that the Principal is stored in inside the session.
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 externally 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.