Class AzureDevOpsAuthentication
- java.lang.Object
-
- jetbrains.buildServer.serverSide.oauth.BaseOAuthAuthentication
-
- jetbrains.buildServer.serverSide.oauth.azuredevops.AzureDevOpsAuthentication
-
- All Implemented Interfaces:
HttpAuthenticationScheme,AuthModuleType
public class AzureDevOpsAuthentication extends BaseOAuthAuthentication
-
-
Field Summary
Fields Modifier and Type Field Description static StringLOGIN_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 AzureDevOpsAuthentication(AuthenticationContext context, AzureDevOpsOAuthProvider azureDevOpsOAuthProvider, AzureDevOpsOAuth azureDevOpsOAuthFlow, AzureDevOpsClient azureDevOpsClient, OAuthTokensStorage oAuthTokensStorage, UserAvatarsManager userAvatarsManager, AzureDevOpsAvatarProvider avatarProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Returns description of the authentication module to show in the UIStringgetRestrictingOptions(Map<String,String> properties)protected StringperformAuthChecks(OAuthFlow.OAuthResult oAuthResult, Map<String,String> properties, OAuthConnectionDescriptor connection)OAuthTokenrefreshToken(SUser created, OAuthConnectionDescriptor connectionDescriptor, OAuthToken token)protected voidrememberToken(javax.servlet.http.HttpServletRequest request, SUser created, OAuthConnectionDescriptor connectionDescriptor, OAuthFlow.OAuthResult oAuthResult)-
Methods inherited from class jetbrains.buildServer.serverSide.oauth.BaseOAuthAuthentication
afterNewUserCreated, describeProperties, getConnectAccountController, getDefaultProperties, 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
-
-
Constructor Detail
-
AzureDevOpsAuthentication
public AzureDevOpsAuthentication(@NotNull AuthenticationContext context, @NotNull AzureDevOpsOAuthProvider azureDevOpsOAuthProvider, @NotNull AzureDevOpsOAuth azureDevOpsOAuthFlow, @NotNull AzureDevOpsClient azureDevOpsClient, @NotNull OAuthTokensStorage oAuthTokensStorage, @NotNull UserAvatarsManager userAvatarsManager, @NotNull AzureDevOpsAvatarProvider avatarProvider)
-
-
Method Detail
-
refreshToken
@NotNull public OAuthToken refreshToken(@NotNull SUser created, @NotNull OAuthConnectionDescriptor connectionDescriptor, @NotNull OAuthToken token)
-
rememberToken
protected void rememberToken(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull SUser created, @NotNull OAuthConnectionDescriptor connectionDescriptor, @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
-
getDescription
@NotNull public String getDescription()
Description copied from interface:AuthModuleTypeReturns description of the authentication module to show in the UI- Specified by:
getDescriptionin interfaceAuthModuleType- Overrides:
getDescriptionin classBaseOAuthAuthentication- Returns:
- description of the authentication module to show in the UI
-
getRestrictingOptions
@Nullable public String getRestrictingOptions(@NotNull Map<String,String> properties)
- Overrides:
getRestrictingOptionsin classBaseOAuthAuthentication
-
-