Class GitLabAuthentication.BaseGitLabAuthentication
- java.lang.Object
-
- jetbrains.buildServer.serverSide.oauth.BaseOAuthAuthentication
-
- jetbrains.buildServer.serverSide.oauth.gitlab.GitLabAuthentication.BaseGitLabAuthentication
-
- All Implemented Interfaces:
HttpAuthenticationScheme,AuthModuleType
- Direct Known Subclasses:
GitLabAuthentication.GitLabCeOrEeAuth,GitLabAuthentication.GitLabComAuth
- Enclosing class:
- GitLabAuthentication
public class GitLabAuthentication.BaseGitLabAuthentication extends BaseOAuthAuthentication
-
-
Field Summary
-
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 BaseGitLabAuthentication(OAuthProvider oAuthProvider, String loginPage, String loginControllerPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetRedirectPath(OAuthConnectionDescriptor connection)StringgetRestrictingOptions(Map<String,String> properties)protected booleanisMatchingUniqueRedirectPath(String requestUrl)protected StringperformAuthChecks(OAuthFlow.OAuthResult oAuthResult, Map<String,String> properties, OAuthConnectionDescriptor connection)protected voidrememberToken(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, getRedirectUri, getSuitableConnection, getUserIdPropertyKey, getUsernamePropertyKey, getUserRedirect, init, isMultipleInstancesAllowed, isValidRedirectUrl, prepareBackRedirectErrorMessage, processAuthenticationRequest, registerUserProfilePageExtensions, setUniqueRedirectService, shouldSkip2FA, tryFindSuitableConnection, validate
-
-
-
-
Constructor Detail
-
BaseGitLabAuthentication
public BaseGitLabAuthentication(@NotNull OAuthProvider oAuthProvider, @NotNull String loginPage, @NotNull String loginControllerPath)
-
-
Method Detail
-
rememberToken
protected void rememberToken(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull SUser created, @NotNull OAuthConnectionDescriptor connection, @NotNull OAuthFlow.OAuthResult oAuthResult)- Specified by:
rememberTokenin classBaseOAuthAuthentication
-
performAuthChecks
@Nullable protected String performAuthChecks(OAuthFlow.OAuthResult oAuthResult, Map<String,String> properties, OAuthConnectionDescriptor connection) throws IOException
- Overrides:
performAuthChecksin classBaseOAuthAuthentication- Throws:
IOException
-
getRestrictingOptions
@Nullable public String getRestrictingOptions(@NotNull Map<String,String> properties)
- Overrides:
getRestrictingOptionsin classBaseOAuthAuthentication
-
getRedirectPath
@Nullable protected String getRedirectPath(@NotNull OAuthConnectionDescriptor connection)
- Overrides:
getRedirectPathin classBaseOAuthAuthentication
-
isMatchingUniqueRedirectPath
protected boolean isMatchingUniqueRedirectPath(@NotNull String requestUrl)- Overrides:
isMatchingUniqueRedirectPathin classBaseOAuthAuthentication
-
-