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 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 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 String
getDescription()
Returns description of the authentication module to show in the UIString
getRestrictingOptions(Map<String,String> properties)
protected String
performAuthChecks(OAuthFlow.OAuthResult oAuthResult, Map<String,String> properties, OAuthConnectionDescriptor connection)
OAuthToken
refreshToken(SUser created, OAuthConnectionDescriptor connectionDescriptor, OAuthToken token)
protected void
rememberToken(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:
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
-
getDescription
@NotNull public String getDescription()
Description copied from interface:AuthModuleType
Returns description of the authentication module to show in the UI- Specified by:
getDescription
in interfaceAuthModuleType
- Overrides:
getDescription
in classBaseOAuthAuthentication
- Returns:
- description of the authentication module to show in the UI
-
getRestrictingOptions
@Nullable public String getRestrictingOptions(@NotNull Map<String,String> properties)
- Overrides:
getRestrictingOptions
in classBaseOAuthAuthentication
-
-