public class OAuthAuthenticationServiceImpl extends java.lang.Object implements OAuthAuthenticationService
Constructor and Description |
---|
OAuthAuthenticationServiceImpl(<any> datasinkServiceProvider,
<any> historyServiceProvider,
<any> serverInfoProvider,
<any> hookHandlerServiceProvider) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
generateAuthenticationUrl(OAuthAuthenticatable oAuthDatasink)
Generates the URL necessary for OAuth2 authentication.
|
void |
generateRefreshToken(java.lang.String authenticationCode,
OAuthAuthenticatable oAuthDatasink,
java.lang.String redirectUri)
Generates and saves an OAuth2 refresh token into the given datasink, which is
necessary for allowing the app to access the OAuth2 service in future usage
without requiring the user to manually authenticate.
|
java.lang.String |
getRedirectUri()
Get redirect URI needed for OAuth2-authenticated services.
|
public OAuthAuthenticationServiceImpl(<any> datasinkServiceProvider, <any> historyServiceProvider, <any> serverInfoProvider, <any> hookHandlerServiceProvider)
public void generateRefreshToken(java.lang.String authenticationCode, OAuthAuthenticatable oAuthDatasink, java.lang.String redirectUri) throws java.lang.Exception
OAuthAuthenticationService
generateRefreshToken
in interface OAuthAuthenticationService
authenticationCode
- the authentication code generated by the OAuth2
serviceoAuthDatasink
- the datasink to save the refresh token toredirectUri
- the redirect urijava.lang.Exception
public java.lang.String generateAuthenticationUrl(OAuthAuthenticatable oAuthDatasink)
OAuthAuthenticationService
generateAuthenticationUrl
in interface OAuthAuthenticationService
oAuthDatasink
- the OAuth2 datasinkpublic java.lang.String getRedirectUri()
OAuthAuthenticationService
getRedirectUri
in interface OAuthAuthenticationService