This documentation is archived and is not being maintained.
OAuthTokenCredential Constructor (Uri, String, String, String, OAuthTokensReceivedCallback)
Visual Studio 2013
Initializes a new OAuthTokenCredential instance with the specified client id and secret and either an authorization code or a refresh token
Namespace: Microsoft.TeamFoundation.Client
Assembly: Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
public:
OAuthTokenCredential(
Uri^ authorizationUri,
String^ clientId,
String^ clientSecret,
String^ authCodeOrRefreshToken,
OAuthTokensReceivedCallback^ tokensReceived
)
Parameters
- authorizationUri
- Type: System::Uri
The base URI of the authorization server. This is usually the same as the URI of the TFS server
- clientId
- Type: System::String
The client id
- clientSecret
- Type: System::String
The client secret
- authCodeOrRefreshToken
- Type: System::String
Either an authorization code or a refresh token which can be used to obtain an access token (and a new refresh token)
- tokensReceived
- Type: Microsoft.TeamFoundation.Client::OAuthTokensReceivedCallback
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Show: