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