Class GoogleAuthentication
- java.lang.Object
-
- jetbrains.buildServer.serverSide.oauth.BaseOAuthAuthentication
-
- jetbrains.buildServer.serverSide.oauth.google.GoogleAuthentication
-
- All Implemented Interfaces:
HttpAuthenticationScheme
,AuthModuleType
public class GoogleAuthentication extends BaseOAuthAuthentication
-
-
Field Summary
Fields Modifier and Type Field Description static String
DOMAINS_KEY
static String
LOGIN_CONTROLLER_PATH
-
Fields inherited from class jetbrains.buildServer.serverSide.oauth.BaseOAuthAuthentication
DEFAULT_ALLOW_CREATING_NEW_USERS_BY_LOGIN, LOGGER, myAccessTokenControllerPath, myContext, myDefaultScope, myOAuthFlow, myOAuthProvider, myUniqueRedirectService
-
-
Constructor Summary
Constructors Constructor Description GoogleAuthentication(AuthenticationContext context, GoogleOAuthProvider oAuthProvider, GoogleOAuth oAuthFlow, OAuthTokensStorage tokensStorage, UserAvatarsManager userAvatarsManager, GoogleAvatarProvider googleAvatarProvider, GoogleClientFactory googleClientFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
String
getRestrictingOptions(Map<String,String> properties)
protected String
performAuthChecks(OAuthFlow.OAuthResult oAuthResult, Map<String,String> properties, OAuthConnectionDescriptor connection)
protected void
rememberToken(javax.servlet.http.HttpServletRequest request, SUser created, OAuthConnectionDescriptor connection, OAuthFlow.OAuthResult oAuthResult)
-
Methods inherited from class jetbrains.buildServer.serverSide.oauth.BaseOAuthAuthentication
afterNewUserCreated, describeProperties, getConnectAccountController, getDefaultProperties, getDescription, getDisplayName, getEditPropertiesJspFilePath, getLoginController, getRedirectPath, getRedirectUri, getSuitableConnection, getUserIdPropertyKey, getUsernamePropertyKey, getUserRedirect, init, isMatchingUniqueRedirectPath, isMultipleInstancesAllowed, isValidRedirectUrl, prepareBackRedirectErrorMessage, processAuthenticationRequest, registerUserProfilePageExtensions, setUniqueRedirectService, shouldSkip2FA, tryFindSuitableConnection, validate
-
-
-
-
Field Detail
-
LOGIN_CONTROLLER_PATH
public static final String LOGIN_CONTROLLER_PATH
- See Also:
- Constant Field Values
-
DOMAINS_KEY
public static final String DOMAINS_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GoogleAuthentication
public GoogleAuthentication(@NotNull AuthenticationContext context, @NotNull GoogleOAuthProvider oAuthProvider, @NotNull GoogleOAuth oAuthFlow, @NotNull OAuthTokensStorage tokensStorage, @NotNull UserAvatarsManager userAvatarsManager, @NotNull GoogleAvatarProvider googleAvatarProvider, @NotNull GoogleClientFactory googleClientFactory)
-
-
Method Detail
-
rememberToken
protected void rememberToken(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull SUser created, @NotNull OAuthConnectionDescriptor connection, @NotNull OAuthFlow.OAuthResult oAuthResult)
- Specified by:
rememberToken
in classBaseOAuthAuthentication
-
getName
@NotNull public String getName()
- Specified by:
getName
in interfaceAuthModuleType
- Overrides:
getName
in classBaseOAuthAuthentication
- Returns:
- unique identificator (case-insensitive)
-
performAuthChecks
@Nullable protected String performAuthChecks(OAuthFlow.OAuthResult oAuthResult, Map<String,String> properties, OAuthConnectionDescriptor connection) throws IOException
- Overrides:
performAuthChecks
in classBaseOAuthAuthentication
- Throws:
IOException
-
getRestrictingOptions
@Nullable public String getRestrictingOptions(@NotNull Map<String,String> properties)
- Overrides:
getRestrictingOptions
in classBaseOAuthAuthentication
-
-