Class BitBucketOAuth
- java.lang.Object
-
- jetbrains.buildServer.serverSide.oauth.bitbucket.BitBucketOAuth
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.serverSide.oauth.OAuthFlow
OAuthFlow.OAuthResult, OAuthFlow.UserData
-
-
Constructor Summary
Constructors Constructor Description BitBucketOAuth(BitbucketClient bitbucketClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OAuthFlow.OAuthResultcompleteOAuth(OAuthConnectionDescriptor opb, javax.servlet.http.HttpServletRequest request, String redirectUri)OAuthFlow.UserDatagetUserData(OAuthConnectionDescriptor opb, String token, javax.servlet.http.HttpServletRequest request)StringgetUserLink(OAuthConnectionDescriptor opb, String username)List<BitBucketWorkspace>getUserWorkspaces(String token)StringredirectToOAuthProvider(OAuthConnectionDescriptor oAuthConnectionDescriptor, Map<String,String> stateParametrs, String scope, String redirectUri)
-
-
-
Constructor Detail
-
BitBucketOAuth
public BitBucketOAuth(@NotNull BitbucketClient bitbucketClient)
-
-
Method Detail
-
redirectToOAuthProvider
@NotNull public String redirectToOAuthProvider(@NotNull OAuthConnectionDescriptor oAuthConnectionDescriptor, @NotNull Map<String,String> stateParametrs, @Nullable String scope, @NotNull String redirectUri)
- Specified by:
redirectToOAuthProviderin interfaceOAuthFlow
-
completeOAuth
@NotNull public OAuthFlow.OAuthResult completeOAuth(@NotNull OAuthConnectionDescriptor opb, @NotNull javax.servlet.http.HttpServletRequest request, @NotNull String redirectUri) throws OAuthException
- Specified by:
completeOAuthin interfaceOAuthFlow- Throws:
OAuthException
-
getUserData
@NotNull public OAuthFlow.UserData getUserData(@NotNull OAuthConnectionDescriptor opb, @NotNull String token, @NotNull javax.servlet.http.HttpServletRequest request)
- Specified by:
getUserDatain interfaceOAuthFlow
-
getUserLink
@NotNull public String getUserLink(@NotNull OAuthConnectionDescriptor opb, @NotNull String username)
- Specified by:
getUserLinkin interfaceOAuthFlow
-
getUserWorkspaces
@NotNull public List<BitBucketWorkspace> getUserWorkspaces(@NotNull String token)
-
-