Class GitLabOAuth
- java.lang.Object
-
- jetbrains.buildServer.serverSide.oauth.gitlab.GitLabOAuth
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.serverSide.oauth.OAuthFlow
OAuthFlow.OAuthResult, OAuthFlow.UserData
-
-
Constructor Summary
Constructors Constructor Description GitLabOAuth(GitLabClientFactory gitLabClientFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OAuthFlow.OAuthResultcompleteOAuth(OAuthConnectionDescriptor opb, javax.servlet.http.HttpServletRequest request, String redirectUrl)OAuthFlow.UserDatagetUserData(OAuthConnectionDescriptor opb, String token, javax.servlet.http.HttpServletRequest request)List<JsonGroup>getUserGroups(String token, OAuthConnectionDescriptor connection)StringgetUserLink(OAuthConnectionDescriptor opb, String username)StringredirectToOAuthProvider(OAuthConnectionDescriptor connectionDescriptor, Map<String,String> stateParametrs, String scope, String redirectUri)
-
-
-
Constructor Detail
-
GitLabOAuth
public GitLabOAuth(@NotNull GitLabClientFactory gitLabClientFactory)
-
-
Method Detail
-
redirectToOAuthProvider
@NotNull public String redirectToOAuthProvider(@NotNull OAuthConnectionDescriptor connectionDescriptor, @NotNull Map<String,String> stateParametrs, @Nullable String scope, @NotNull String redirectUri) throws OAuthException
- Specified by:
redirectToOAuthProviderin interfaceOAuthFlow- Throws:
OAuthException
-
completeOAuth
@NotNull public OAuthFlow.OAuthResult completeOAuth(@NotNull OAuthConnectionDescriptor opb, @NotNull javax.servlet.http.HttpServletRequest request, @NotNull String redirectUrl) 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
-
getUserGroups
@NotNull public List<JsonGroup> getUserGroups(String token, OAuthConnectionDescriptor connection)
-
getUserLink
@NotNull public String getUserLink(@NotNull OAuthConnectionDescriptor opb, @NotNull String username)
- Specified by:
getUserLinkin interfaceOAuthFlow
-
-