Class DummyAuthController
java.lang.Object
com.github.philippheuer.credentialmanager.domain.AuthenticationController
com.github.philippheuer.credentialmanager.authcontroller.DummyAuthController
public class DummyAuthController extends AuthenticationController
Dummy Authentication Controller
-
Constructor Summary
Constructors Constructor Description DummyAuthController()Constructor -
Method Summary
Modifier and Type Method Description 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 com.github.philippheuer.credentialmanager.domain.AuthenticationController
getCredentialManager, setCredentialManagerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
DummyAuthController
public DummyAuthController()Constructor
-
-
Method Details
-
startOAuth2AuthorizationCodeGrantType
public 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
- Specified by:
startOAuth2AuthorizationCodeGrantTypein classAuthenticationController- Parameters:
oAuth2IdentityProvider- OAuth2 Identity ProviderredirectUrl- Redirect urlscopes- Requested scopes
-