VssOAuthCredential Constructor (Uri, String, String, String, Action<VssOAuthTokenContainer>)

Initializes a new VssOAuthCredential instance with the specified client id and secret and either an authorization code or a refresh token

Namespace: Microsoft.VisualStudio.Services.Client
Assembly: Microsoft.VisualStudio.Services.Client (in Microsoft.VisualStudio.Services.Client.dll)


Public Sub New ( _
    authorizationUri As Uri, _
    clientId As String, _
    clientSecret As String, _
    authCodeOrRefreshToken As String, _
    tokensReceived As Action(Of VssOAuthTokenContainer) _
public VssOAuthCredential(
    Uri authorizationUri,
    string clientId,
    string clientSecret,
    string authCodeOrRefreshToken,
    Action<VssOAuthTokenContainer> tokensReceived
    Uri^ authorizationUri, 
    String^ clientId, 
    String^ clientSecret, 
    String^ authCodeOrRefreshToken, 
    Action<VssOAuthTokenContainer^>^ tokensReceived
new : 
        authorizationUri:Uri * 
        clientId:string * 
        clientSecret:string * 
        authCodeOrRefreshToken:string * 
        tokensReceived:Action<VssOAuthTokenContainer> -> VssOAuthCredential
public function VssOAuthCredential(
    authorizationUri : Uri, 
    clientId : String, 
    clientSecret : String, 
    authCodeOrRefreshToken : String, 
    tokensReceived : Action<VssOAuthTokenContainer>


  • authorizationUri
    Type: System.Uri

    The base URI of the authorization server. This is usually the same as the URI of the TFS server

  • 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)

.NET Framework Security

See Also


VssOAuthCredential Class

VssOAuthCredential Overload

Microsoft.VisualStudio.Services.Client Namespace