Class AuthenticationController
java.lang.Object
com.github.philippheuer.credentialmanager.domain.AuthenticationController
- Direct Known Subclasses:
DummyAuthController
public abstract class AuthenticationController
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description AuthenticationController()Constructor -
Method Summary
Modifier and Type Method Description CredentialManagergetCredentialManager()Holds the CredentialManagervoidsetCredentialManager(CredentialManager credentialManager)Holds the CredentialManagerabstract voidstartOAuth2AuthorizationCodeGrantType(OAuth2IdentityProvider oAuth2IdentityProvider, java.lang.String redirectUrl, java.util.List<java.lang.Object> scopes)Starts the OAuth2Flow for the specified OAuth2 Identity ProviderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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 ProviderIt 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 ProviderredirectUrl- Redirect urlscopes- Requested scopes
-
setCredentialManager
Holds the CredentialManager -
getCredentialManager
Holds the CredentialManager
-