Class TfsAccessTokenProvider
- java.lang.Object
-
- jetbrains.buildServer.serverSide.oauth.tfs.TfsAccessTokenProvider
-
- All Implemented Interfaces:
AccessTokenProvider
public class TfsAccessTokenProvider extends Object implements AccessTokenProvider
TFS oauth token provider.
-
-
Constructor Summary
Constructors Constructor Description TfsAccessTokenProvider(WebLinks webLinks, SSLTrustStoreProvider sslTrustStoreProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OAuthToken
completeAuthorization(OAuthConnectionDescriptor connection, long userId, String code)
protected String
getAuthorizeUrl()
String
getAuthorizeUrl(OAuthConnectionDescriptor connection, String state, String scope)
protected String
getProfileUrl()
protected String
getTokenUrl()
OAuthToken
getUpdatedToken(OAuthConnectionDescriptor connection, OAuthToken token)
-
-
-
Constructor Detail
-
TfsAccessTokenProvider
public TfsAccessTokenProvider(@NotNull WebLinks webLinks, @NotNull SSLTrustStoreProvider sslTrustStoreProvider)
-
-
Method Detail
-
getTokenUrl
@NotNull protected String getTokenUrl()
-
getAuthorizeUrl
public String getAuthorizeUrl(@NotNull OAuthConnectionDescriptor connection, String state, String scope)
- Specified by:
getAuthorizeUrl
in interfaceAccessTokenProvider
-
getAuthorizeUrl
@NotNull protected String getAuthorizeUrl()
-
completeAuthorization
public OAuthToken completeAuthorization(@NotNull OAuthConnectionDescriptor connection, long userId, String code) throws Exception
- Specified by:
completeAuthorization
in interfaceAccessTokenProvider
- Throws:
Exception
-
getUpdatedToken
public OAuthToken getUpdatedToken(@NotNull OAuthConnectionDescriptor connection, OAuthToken token) throws Exception
- Specified by:
getUpdatedToken
in interfaceAccessTokenProvider
- Throws:
Exception
-
getProfileUrl
@NotNull protected String getProfileUrl()
-
-