Class GitHubAuthentication.BaseGitHubAuthentication
- java.lang.Object
-
- jetbrains.buildServer.serverSide.oauth.BaseOAuthAuthentication
-
- jetbrains.buildServer.serverSide.oauth.github.GitHubAuthentication.BaseGitHubAuthentication
-
- All Implemented Interfaces:
HttpAuthenticationScheme
,AuthModuleType
- Direct Known Subclasses:
GitHubAuthentication.GitHubComAuth
,GitHubAuthentication.GitHubEnterpriseAuth
- Enclosing class:
- GitHubAuthentication
public class GitHubAuthentication.BaseGitHubAuthentication 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 BaseGitHubAuthentication(OAuthProvider oAuthProvider, String loginPage, String loginControllerPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getRedirectPath(OAuthConnectionDescriptor connection)
String
getRestrictingOptions(Map<String,String> properties)
protected boolean
isMatchingUniqueRedirectPath(String requestUrl)
protected String
performAuthChecks(OAuthFlow.OAuthResult oAuthResult, Map<String,String> properties, OAuthConnectionDescriptor connection)
protected String
prepareBackRedirectErrorMessage(String error, String errorDescr)
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, getRedirectUri, getSuitableConnection, getUserIdPropertyKey, getUsernamePropertyKey, getUserRedirect, init, isMultipleInstancesAllowed, isValidRedirectUrl, processAuthenticationRequest, registerUserProfilePageExtensions, setUniqueRedirectService, shouldSkip2FA, tryFindSuitableConnection, validate
-
-
-
-
Constructor Detail
-
BaseGitHubAuthentication
public BaseGitHubAuthentication(@NotNull OAuthProvider oAuthProvider, @NotNull String loginPage, @NotNull String loginControllerPath)
-
-
Method Detail
-
prepareBackRedirectErrorMessage
@NotNull protected String prepareBackRedirectErrorMessage(@NotNull String error, @Nullable String errorDescr)
- Overrides:
prepareBackRedirectErrorMessage
in classBaseOAuthAuthentication
-
performAuthChecks
@Nullable protected String performAuthChecks(OAuthFlow.OAuthResult oAuthResult, Map<String,String> properties, OAuthConnectionDescriptor connection) throws IOException
- Overrides:
performAuthChecks
in classBaseOAuthAuthentication
- Throws:
IOException
-
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
-
getRestrictingOptions
@Nullable public String getRestrictingOptions(@NotNull Map<String,String> properties)
- Overrides:
getRestrictingOptions
in classBaseOAuthAuthentication
-
getRedirectPath
@Nullable protected String getRedirectPath(@NotNull OAuthConnectionDescriptor connection)
- Overrides:
getRedirectPath
in classBaseOAuthAuthentication
-
isMatchingUniqueRedirectPath
protected boolean isMatchingUniqueRedirectPath(@NotNull String requestUrl)
- Overrides:
isMatchingUniqueRedirectPath
in classBaseOAuthAuthentication
-
-