@@ -62,6 +62,18 @@ public async Task<Token> GeneratePersonalAccessToken(TargetUri targetUri, Token
62
62
return await Task . FromResult ( new Token ( "personal-access-token" , TokenType . Personal ) ) ;
63
63
}
64
64
65
+ /// <summary>
66
+ /// Generates a personal access token for use with Visual Studio Team Services.
67
+ /// <para/>
68
+ /// Returns the acquired token if successful; otherwise <see langword="null"/>;
69
+ /// </summary>
70
+ /// <param name="targetUri">The uniform resource indicator of the resource access tokens are being requested for.</param>
71
+ /// <param name="accessToken">Access token granted by the identity authority (Azure).</param>
72
+ /// <param name="tokenScope">The requested access scopes to be granted to the token.</param>
73
+ /// <param name="requireCompactToken">`<see langword="true"/>` if requesting a compact format token; otherwise `<see langword="false"/>`.</param>
74
+ public Task < Token > GeneratePersonalAccessToken ( TargetUri targetUri , Token accessToken , TokenScope tokenScope , bool requireCompactToken )
75
+ => GeneratePersonalAccessToken ( targetUri , accessToken , tokenScope , requireCompactToken , null ) ;
76
+
65
77
/// <summary>
66
78
/// Acquires a <see cref="Token"/> from the authority via an interactive user logon prompt.
67
79
/// <para/>
@@ -72,7 +84,7 @@ public async Task<Token> GeneratePersonalAccessToken(TargetUri targetUri, Token
72
84
/// <param name="resource">Identifier of the target resource that is the recipient of the requested token.</param>
73
85
/// <param name="redirectUri">Address to return to upon receiving a response from the authority.</param>
74
86
/// <param name="queryParameters">optional value, appended as-is to the query string in the HTTP authentication request to the authority.</param>
75
- public async Task < Token > InteractiveAcquireToken ( TargetUri targetUri , string clientId , string resource , Uri redirectUri , string queryParameters = null )
87
+ public async Task < Token > InteractiveAcquireToken ( TargetUri targetUri , string clientId , string resource , Uri redirectUri , string queryParameters )
76
88
{
77
89
Assert . Equal ( ExpectedQueryParameters , queryParameters ) ;
78
90
0 commit comments