Class OidcProcess


public class OidcProcess extends OAuthProcess
An OpenId Connect authentication process.

The process implements the state machine that is needed to complete an OpenID Connect authentication cycle.

A process is created for a particular scope, which represents what kind of information one wants to access, and which is used to inform the user of the kind of operations he needs to authorize for your application to make with his protected data.

See Also:
  • Constructor Details

  • Method Details

    • startAuthenticate

      public void startAuthenticate()
      Starts an authorization and authentication process.

      This is OAuthProcess.startAuthorize() followed by getIdentity().

      The authentication process ends with the OAuthProcess.authenticated() signal which signals the obtained identity.

      Note: To be able to use a popup (instead of a page redirect), you should connect this method directly to an, since popup windows are blocked in most web browsers unless they are the direct consequence of an event.

      Overrides:
      startAuthenticate in class OAuthProcess
    • getIdentity

      public void getIdentity(OAuthAccessToken token)
      Obtains an authenticated identity.

      The authentication process will either use the ID token included with the access token or, when this is not available, request the identity at the user info endpoint using claims.

      The authentication process ends with the OAuthProcess.authenticated() signal which signals the obtained identity.

      Overrides:
      getIdentity in class OAuthProcess