Class BitBucketAuthentication
- java.lang.Object
-
- jetbrains.buildServer.serverSide.oauth.BaseOAuthAuthentication
-
- jetbrains.buildServer.serverSide.oauth.bitbucket.BitBucketAuthentication
-
- All Implemented Interfaces:
HttpAuthenticationScheme
,AuthModuleType
public class BitBucketAuthentication extends BaseOAuthAuthentication
-
-
Field Summary
Fields Modifier and Type Field Description static String
ALLOWED_WORKSPACES_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 BitBucketAuthentication(AuthenticationContext context, BitBucketOAuthProvider bitBucketOAuthProvider, BitBucketOAuth bitBucketOAuth, OAuthTokensStorage oAuthTokensStorage, BitBucketAvatarProvider bitBucketAvatarProvider, UserAvatarsManager userAvatarsManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, getName, 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
-
ALLOWED_WORKSPACES_KEY
public static final String ALLOWED_WORKSPACES_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BitBucketAuthentication
public BitBucketAuthentication(@NotNull AuthenticationContext context, @NotNull BitBucketOAuthProvider bitBucketOAuthProvider, @NotNull BitBucketOAuth bitBucketOAuth, @NotNull OAuthTokensStorage oAuthTokensStorage, @NotNull BitBucketAvatarProvider bitBucketAvatarProvider, @NotNull UserAvatarsManager userAvatarsManager)
-
-
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
-
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
-
-