Class IntermediateAuthenticationState

Object
se.curity.identityserver.sdk.authenticationaction.completions.IntermediateAuthenticationState

public class IntermediateAuthenticationState extends Object
This class can be injected in the constructors of the ObligationRequestHandlers for an authentication action obligation. It contains the result of the authentication and the actions that have run before this action. It is not yet committed to the authenticated sessions and may differ from the end result when all the actions are done.
Since:
3.0.0
  • Constructor Details

  • Method Details

    • getUsername

      public String getUsername()
      Returns the username of the authenticated user.
      Returns:
      the authenticated username
      Since:
      3.0.0
    • getAuthenticationAttributes

      public AuthenticationAttributes getAuthenticationAttributes()
      Returns the authentication attributes of the user.

      It contains the result of the authentication and the actions that have run before this action. It is not yet committed to the authenticated sessions and may differ from the end result when all the actions are done.

      Returns:
      the authentication attributes of the user
      Since:
      3.0.0