Uses of Class
jetbrains.buildServer.serverSide.oauth.OAuthToken
-
-
Uses of OAuthToken in jetbrains.buildServer.serverSide.oauth
Methods in jetbrains.buildServer.serverSide.oauth that return OAuthToken Modifier and Type Method Description OAuthToken
IssueTokenService. alterTokenAccessibleEntities(SUser user, OAuthConnectionDescriptor connection, OAuthToken token, List<String> accessibleEntities)
OAuthToken
IssueTokenService. alterTokenName(OAuthToken token, String newName)
OAuthToken
IssueTokenService. alterTokenProjectScope(SUser user, OAuthToken token, List<String> externalProjectIds)
OAuthToken
OAuthProvider. applyAccessibleEntities(SUser user, OAuthConnectionDescriptor connection, OAuthToken token, List<String> accessibleEntities)
Apply the requested accessible entities restriction to the token.protected OAuthToken
OAuthPopupControllerBase. findExistingToken(TokenStorageUserQuery query)
protected OAuthToken
OAuthPopupControllerBase. findMatchingToken(javax.servlet.http.HttpServletRequest request, SProject project, String connectionId)
protected OAuthToken
OAuthPopupControllerBase. findNewlyIssuedToken(javax.servlet.http.HttpServletRequest request, SProject project)
OAuthToken
OAuthTokensStorage. getAnyNonExpiredUserToken(TokenStorageUserQuery query)
Gets any user token that matches the query and is not expired.OAuthToken
OAuthTokensStorage. getToken(String vcsRootExtId, String tokenFullId, boolean checkProjectScope, boolean refreshIfExpired)
OAuthToken
OAuthTokensStorage. getToken(SProject project, String tokenFullId, boolean checkProjectScope, boolean refreshIfExpired)
OAuthToken
TokenRefresher. getToken(String vcsRootExtId, String tokenFullId, boolean checkProjectScope, boolean refreshIfExpired)
Retrieve a token object from storage by its full id.OAuthToken
TokenRefresher. getToken(SProject project, String tokenFullId, boolean checkProjectScope, boolean refreshIfExpired)
Retrieve a token object from storage by its full id.OAuthToken
TokenStorageQueryResult.TokenAndContext. getToken()
protected OAuthToken
BaseAccessTokenController. postProcessTokenAfterIssuing(javax.servlet.http.HttpServletRequest request, Map<String,String> stateContainer, OAuthConnectionDescriptor connection, OAuthToken token)
OAuthToken
OAuthProvider. refreshToken(OAuthConnectionDescriptor connection, OAuthToken token)
OAuthToken
OAuthTokensStorage. rememberPermanentToken(String tokenStorageId, SUser user, String oauthLogin, String personalToken, String scope)
Store a new permanent tokenOAuthToken
OAuthTokensStorage. rememberToken(String tokenStorageId, OAuthToken token)
remember an existing token objectOAuthToken
OAuthTokensStorage. rememberToken(String tokenStorageId, SUser user, String oauthLogin, String personalToken, String scope, int timeToLiveSeconds)
Store a new tokenOAuthToken
OAuthTokensStorage. rememberToken(SProject project, String tokenStorageId, SUser user, String oauthLogin, String personalToken, String scope, int timeToLiveSeconds)
Store a new token and limit its project scopestatic OAuthToken
OAuthTokensStorage. tokenFromJson(String tokenId, String json, EncryptionManager encryptionManager)
Methods in jetbrains.buildServer.serverSide.oauth that return types with arguments of type OAuthToken Modifier and Type Method Description Predicate<OAuthToken>
TokenStorageQuery. getCustomFilter()
Set<OAuthToken>
OAuthTokensStorage. getUserTokens(String connectionId, long userId, SProject project, TokenIntent intent, boolean refreshIfNecessary)
Get all tokens that satisfy certain usage intent for a given user and under a specific connection id within a project contextSet<OAuthToken>
OAuthTokensStorage. getUserTokens(String connectionId, SUser user)
Deprecated.since 2022.04, useOAuthTokensStorage.getUserTokens(String, SUser, SProject, boolean)
insteadSet<OAuthToken>
OAuthTokensStorage. getUserTokens(String connectionId, SUser user, SProject project, boolean refreshIfNecessary)
Get all tokens for a given user and under a specific connection id within a project contextSet<OAuthToken>
OAuthTokensStorage. getUserTokens(String connectionId, SUser user, SProject project, TokenIntent intent, boolean refreshIfNecessary)
Get all tokens that satisfy certain usage intent for a given user and under a specific connection id within a project contextSet<OAuthToken>
OAuthTokensStorage. getUserTokens(TokenStorageUserQuery query)
Get all tokens that satisfy the given query.Methods in jetbrains.buildServer.serverSide.oauth with parameters of type OAuthToken Modifier and Type Method Description void
OAuthTokensStorage. allowTokenInProject(SProject project, String tokenStorageId, OAuthToken oauthToken)
void
OAuthTokensStorage. allowTokenInProjects(Collection<SProject> projects, String tokenStorageId, OAuthToken oauthToken)
OAuthToken
IssueTokenService. alterTokenAccessibleEntities(SUser user, OAuthConnectionDescriptor connection, OAuthToken token, List<String> accessibleEntities)
OAuthToken
IssueTokenService. alterTokenName(OAuthToken token, String newName)
OAuthToken
IssueTokenService. alterTokenProjectScope(SUser user, OAuthToken token, List<String> externalProjectIds)
OAuthToken
OAuthProvider. applyAccessibleEntities(SUser user, OAuthConnectionDescriptor connection, OAuthToken token, List<String> accessibleEntities)
Apply the requested accessible entities restriction to the token.protected abstract org.springframework.web.servlet.ModelAndView
OAuthPopupControllerBase. doWithToken(OAuthToken curOAuthToken, OAuthConnectionDescriptor opb, org.springframework.web.servlet.ModelAndView modelAndView, String vcsType)
Do something with the token that we acquired, e.g.Map<String,String>
OAuthConnectionDescriptor. getTokenUsageParamsForVcsRoot(OAuthToken token)
Returns the necessary parameters for usage of the provided token for authentication in aSVcsRoot
.Map<String,String>
OAuthProvider. getTokenUsageParamsForVcsRoot(OAuthConnectionDescriptor connection, OAuthToken token)
Returns the necessary parameters for usage of the provided token for authentication in aSVcsRoot
.boolean
OAuthProvider. isSuitableToken(OAuthToken token, TokenIntent intent)
protected org.springframework.web.servlet.ModelAndView
OAuthPopupControllerBase. postProcessAfterToken(javax.servlet.http.HttpServletRequest request, SProject project, OAuthConnectionDescriptor connection, org.springframework.web.servlet.ModelAndView modelAndView, OAuthToken token)
Allows implementations to post process the model onceOAuthPopupControllerBase.doWithToken(jetbrains.buildServer.serverSide.oauth.OAuthToken, jetbrains.buildServer.serverSide.oauth.OAuthConnectionDescriptor, org.springframework.web.servlet.ModelAndView, java.lang.String)
is done.protected OAuthToken
BaseAccessTokenController. postProcessTokenAfterIssuing(javax.servlet.http.HttpServletRequest request, Map<String,String> stateContainer, OAuthConnectionDescriptor connection, OAuthToken token)
OAuthToken
OAuthProvider. refreshToken(OAuthConnectionDescriptor connection, OAuthToken token)
OAuthToken
OAuthTokensStorage. rememberToken(String tokenStorageId, OAuthToken token)
remember an existing token objectvoid
OAuthTokensStorage. removeSingleToken(String tokenStorageId, OAuthToken token)
This method removes exactly the supplied token record by its ID value.boolean
OAuthTokensStorage. removeToken(String tokenStorageId, OAuthToken token)
Deprecated.This method can lead to unintended removal of tokens, potentially breaking any existing configuration if it references the removed token's IDs.Method parameters in jetbrains.buildServer.serverSide.oauth with type arguments of type OAuthToken Modifier and Type Method Description B
TokenStorageQuery.Builder. withCustomFilter(Predicate<OAuthToken> customFilter)
Sets a custom filter to apply when querying the token storage.Constructors in jetbrains.buildServer.serverSide.oauth with parameters of type OAuthToken Constructor Description TokenAndContext(OAuthToken token, OAuthConnectionDescriptor connection, SUser user)
-
Uses of OAuthToken in jetbrains.buildServer.serverSide.oauth.azuredevops
Methods in jetbrains.buildServer.serverSide.oauth.azuredevops that return OAuthToken Modifier and Type Method Description OAuthToken
AzureDevOpsAuthentication. refreshToken(SUser created, OAuthConnectionDescriptor connectionDescriptor, OAuthToken token)
OAuthToken
AzureDevOpsOAuthProvider. refreshToken(OAuthConnectionDescriptor connection, OAuthToken token)
Methods in jetbrains.buildServer.serverSide.oauth.azuredevops with parameters of type OAuthToken Modifier and Type Method Description Map<String,String>
AzureDevOpsOAuthProvider. getTokenUsageParamsForVcsRoot(OAuthConnectionDescriptor connection, OAuthToken token)
protected org.springframework.web.servlet.ModelAndView
AzureDevOpsGetTokenPopupController. postProcessAfterToken(javax.servlet.http.HttpServletRequest request, SProject project, OAuthConnectionDescriptor connection, org.springframework.web.servlet.ModelAndView modelAndView, OAuthToken token)
OAuthToken
AzureDevOpsAuthentication. refreshToken(SUser created, OAuthConnectionDescriptor connectionDescriptor, OAuthToken token)
OAuthToken
AzureDevOpsOAuthProvider. refreshToken(OAuthConnectionDescriptor connection, OAuthToken token)
-
Uses of OAuthToken in jetbrains.buildServer.serverSide.oauth.bitbucket
Methods in jetbrains.buildServer.serverSide.oauth.bitbucket that return OAuthToken Modifier and Type Method Description OAuthToken
BitBucketOAuthProvider. refreshToken(OAuthConnectionDescriptor connection, OAuthToken token)
Methods in jetbrains.buildServer.serverSide.oauth.bitbucket with parameters of type OAuthToken Modifier and Type Method Description protected org.springframework.web.servlet.ModelAndView
GetTokenPopupController. postProcessAfterToken(javax.servlet.http.HttpServletRequest request, SProject project, OAuthConnectionDescriptor connection, org.springframework.web.servlet.ModelAndView modelAndView, OAuthToken token)
OAuthToken
BitBucketOAuthProvider. refreshToken(OAuthConnectionDescriptor connection, OAuthToken token)
-
Uses of OAuthToken in jetbrains.buildServer.serverSide.oauth.github
Methods in jetbrains.buildServer.serverSide.oauth.github with parameters of type OAuthToken Modifier and Type Method Description boolean
GitHubOAuthProviderBase. isSuitableToken(OAuthToken token, TokenIntent intent)
-
Uses of OAuthToken in jetbrains.buildServer.serverSide.oauth.gitlab
Methods in jetbrains.buildServer.serverSide.oauth.gitlab that return OAuthToken Modifier and Type Method Description OAuthToken
GitLabComOAuthProvider. refreshToken(OAuthConnectionDescriptor connection, OAuthToken token)
Methods in jetbrains.buildServer.serverSide.oauth.gitlab with parameters of type OAuthToken Modifier and Type Method Description Map<String,String>
GitLabComOAuthProvider. getTokenUsageParamsForVcsRoot(OAuthConnectionDescriptor connection, OAuthToken token)
protected org.springframework.web.servlet.ModelAndView
GetTokenPopupController. postProcessAfterToken(javax.servlet.http.HttpServletRequest request, SProject project, OAuthConnectionDescriptor connection, org.springframework.web.servlet.ModelAndView modelAndView, OAuthToken token)
OAuthToken
GitLabComOAuthProvider. refreshToken(OAuthConnectionDescriptor connection, OAuthToken token)
-
Uses of OAuthToken in jetbrains.buildServer.serverSide.oauth.space
Methods in jetbrains.buildServer.serverSide.oauth.space that return OAuthToken Modifier and Type Method Description static OAuthToken
SpaceTokenUtil. createApplicationToken(SpaceAccessToken spaceToken, String connectionId, SProject project)
protected OAuthToken
SpaceOAuthPopupControllerBase. findExistingToken(TokenStorageUserQuery query)
OAuthToken
SpaceOAuthProvider. refreshToken(OAuthConnectionDescriptor connection, OAuthToken token)
Methods in jetbrains.buildServer.serverSide.oauth.space with parameters of type OAuthToken Modifier and Type Method Description protected org.springframework.web.servlet.ModelAndView
SpaceOAuthPopupControllerBase. doWithToken(OAuthToken curOAuthToken, OAuthConnectionDescriptor opb, org.springframework.web.servlet.ModelAndView modelAndView, String vcsType)
protected org.springframework.web.servlet.ModelAndView
SpaceShowProjectsController. doWithToken(OAuthToken curOAuthToken, OAuthConnectionDescriptor opb, org.springframework.web.servlet.ModelAndView modelAndView, String vcsType)
protected org.springframework.web.servlet.ModelAndView
SpaceShowRepositoriesController. doWithToken(OAuthToken curOAuthToken, OAuthConnectionDescriptor opb, org.springframework.web.servlet.ModelAndView modelAndView, String vcsType)
protected void
SpaceOAuthPopupControllerBase. fillFallbackModel(Map<String,Object> model, OAuthConnectionDescriptor connection, OAuthToken curOAuthToken)
protected void
SpaceShowProjectsController. fillFallbackModel(Map<String,Object> model, OAuthConnectionDescriptor connection, OAuthToken curOAuthToken)
protected void
SpaceShowRepositoriesController. fillFallbackModel(Map<String,Object> model, OAuthConnectionDescriptor connection, OAuthToken curOAuthToken)
protected org.springframework.web.servlet.ModelAndView
SpaceOAuthPopupControllerBase. getFallbackModelForPending(org.springframework.web.servlet.ModelAndView modelAndView, OAuthConnectionDescriptor connection, OAuthToken curOAuthToken)
Map<String,String>
SpaceOAuthProvider. getTokenUsageParamsForVcsRoot(OAuthConnectionDescriptor connection, OAuthToken token)
static boolean
SpaceTokenUtil. isApplicationToken(OAuthToken token)
boolean
SpaceOAuthProvider. isSuitableToken(OAuthToken token, TokenIntent intent)
protected org.springframework.web.servlet.ModelAndView
SpaceGetTokenPopupController. postProcessAfterToken(javax.servlet.http.HttpServletRequest request, SProject project, OAuthConnectionDescriptor connection, org.springframework.web.servlet.ModelAndView modelAndView, OAuthToken token)
protected org.springframework.web.servlet.ModelAndView
SpaceShowProjectsController. postProcessAfterToken(javax.servlet.http.HttpServletRequest request, SProject project, OAuthConnectionDescriptor connection, org.springframework.web.servlet.ModelAndView modelAndView, OAuthToken token)
OAuthToken
SpaceOAuthProvider. refreshToken(OAuthConnectionDescriptor connection, OAuthToken token)
-
Uses of OAuthToken in jetbrains.buildServer.serverSide.oauth.tfs
Methods in jetbrains.buildServer.serverSide.oauth.tfs that return OAuthToken Modifier and Type Method Description OAuthToken
AccessTokenProvider. completeAuthorization(OAuthConnectionDescriptor connection, long userId, String code)
OAuthToken
TfsAccessTokenProvider. completeAuthorization(OAuthConnectionDescriptor connection, long userId, String code)
OAuthToken
AccessTokenProvider. getUpdatedToken(OAuthConnectionDescriptor connection, OAuthToken token)
OAuthToken
TfsAccessTokenProvider. getUpdatedToken(OAuthConnectionDescriptor connection, OAuthToken token)
Methods in jetbrains.buildServer.serverSide.oauth.tfs with parameters of type OAuthToken Modifier and Type Method Description OAuthToken
AccessTokenProvider. getUpdatedToken(OAuthConnectionDescriptor connection, OAuthToken token)
OAuthToken
TfsAccessTokenProvider. getUpdatedToken(OAuthConnectionDescriptor connection, OAuthToken token)
-
Uses of OAuthToken in jetbrains.buildServer.vcshostings
Methods in jetbrains.buildServer.vcshostings with parameters of type OAuthToken Modifier and Type Method Description VcsInformationProvider
VcsInformationManager. createProvider(OAuthConnectionDescriptor connectionDescriptor, OAuthToken token)
Creates a VCS information provider that corresponds to the connection tyopeVcsInformationProvider
VcsInformationManagerImpl. createProvider(OAuthConnectionDescriptor connectionDescriptor, OAuthToken token)
VcsInformationProvider
VcsInformationService. createProvider(OAuthConnectionDescriptor connectionDescriptor, OAuthToken token)
Creates a VCS information provider that corresponds to the connection type -
Uses of OAuthToken in jetbrains.buildServer.vcshostings.bbcloud
Methods in jetbrains.buildServer.vcshostings.bbcloud with parameters of type OAuthToken Modifier and Type Method Description VcsInformationProvider
BitBucketVcsInformationService. createProvider(OAuthConnectionDescriptor connectionDescriptor, OAuthToken token)
Constructors in jetbrains.buildServer.vcshostings.bbcloud with parameters of type OAuthToken Constructor Description BitBucketRepositoriesSearch(BitbucketClient client, OAuthToken token)
BitBucketVcsInformationProvider(BitbucketClient client, OAuthToken token)
-
Uses of OAuthToken in jetbrains.buildServer.vcshostings.github
Methods in jetbrains.buildServer.vcshostings.github with parameters of type OAuthToken Modifier and Type Method Description VcsInformationProvider
GitHubVcsInformationService. createProvider(OAuthConnectionDescriptor connectionDescriptor, OAuthToken token)
-
Uses of OAuthToken in jetbrains.buildServer.vcshostings.gitlab
Methods in jetbrains.buildServer.vcshostings.gitlab with parameters of type OAuthToken Modifier and Type Method Description VcsInformationProvider
GitLabVcsInfromationService. createProvider(OAuthConnectionDescriptor connectionDescriptor, OAuthToken token)
-