Class SpaceAuthentication
- java.lang.Object
-
- jetbrains.buildServer.serverSide.oauth.BaseOAuthAuthentication
-
- jetbrains.buildServer.serverSide.oauth.space.SpaceAuthentication
-
- All Implemented Interfaces:
HttpAuthenticationScheme
,AuthModuleType
public class SpaceAuthentication extends BaseOAuthAuthentication
-
-
Field Summary
Fields Modifier and Type Field Description static String
SPACE_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 SpaceAuthentication(AuthenticationContext context, SpaceOAuthProvider oAuthProvider, SpaceOAuth oAuthFlow, OAuthTokensStorage tokensStorage, UserAvatarsManager userAvatarsManager, SpaceAvatarProvider spaceAvatarProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
protected void
rememberToken(javax.servlet.http.HttpServletRequest request, SUser created, OAuthConnectionDescriptor connection, OAuthFlow.OAuthResult oAuthResult)
OAuthConnectionDescriptor
tryFindSuitableConnection()
-
Methods inherited from class jetbrains.buildServer.serverSide.oauth.BaseOAuthAuthentication
afterNewUserCreated, describeProperties, getConnectAccountController, getDefaultProperties, getDescription, getDisplayName, getEditPropertiesJspFilePath, getLoginController, getRedirectPath, getRedirectUri, getRestrictingOptions, getSuitableConnection, getUserIdPropertyKey, getUsernamePropertyKey, getUserRedirect, init, isMatchingUniqueRedirectPath, isMultipleInstancesAllowed, isValidRedirectUrl, performAuthChecks, prepareBackRedirectErrorMessage, processAuthenticationRequest, registerUserProfilePageExtensions, setUniqueRedirectService, shouldSkip2FA, validate
-
-
-
-
Field Detail
-
SPACE_LOGIN_CONTROLLER_PATH
public static final String SPACE_LOGIN_CONTROLLER_PATH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SpaceAuthentication
public SpaceAuthentication(@NotNull AuthenticationContext context, @NotNull SpaceOAuthProvider oAuthProvider, @NotNull SpaceOAuth oAuthFlow, @NotNull OAuthTokensStorage tokensStorage, @NotNull UserAvatarsManager userAvatarsManager, @NotNull SpaceAvatarProvider spaceAvatarProvider)
-
-
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)
-
tryFindSuitableConnection
@Nullable public OAuthConnectionDescriptor tryFindSuitableConnection()
- Overrides:
tryFindSuitableConnection
in classBaseOAuthAuthentication
-
-