Class AuthenticationController

java.lang.Object
com.github.philippheuer.credentialmanager.domain.AuthenticationController
Direct Known Subclasses:
DummyAuthController

public abstract class AuthenticationController
extends java.lang.Object
  • Constructor Details

    • AuthenticationController

      public AuthenticationController()
      Constructor
  • Method Details

    • startOAuth2AuthorizationCodeGrantType

      public abstract void startOAuth2AuthorizationCodeGrantType​(OAuth2IdentityProvider oAuth2IdentityProvider, java.lang.String redirectUrl, java.util.List<java.lang.Object> scopes)
      Starts the OAuth2Flow for the specified OAuth2 Identity Provider

      It starts out by building a link and directing the user’s browser to that URL. At a high level, the flow has the following steps The application opens a browser to send the user to the OAuth server The user sees the authorization prompt and approves the app’s request The user is redirected back to the application with an code in the URL fragment The server uses the code to retrieve a access token

      Parameters:
      oAuth2IdentityProvider - OAuth2 Identity Provider
      redirectUrl - Redirect url
      scopes - Requested scopes
    • setCredentialManager

      public void setCredentialManager​(CredentialManager credentialManager)
      Holds the CredentialManager
    • getCredentialManager

      public CredentialManager getCredentialManager()
      Holds the CredentialManager