@@ -385,10 +385,11 @@ export class DynamicAuthProvider implements vscode.AuthenticationProvider {
385
385
}
386
386
387
387
// Prepare the authorization request URL
388
+ const scopeString = scopes . join ( ' ' ) ;
388
389
const authorizationUrl = new URL ( this . _serverMetadata . authorization_endpoint ! ) ;
389
390
authorizationUrl . searchParams . append ( 'client_id' , this . clientId ) ;
390
391
authorizationUrl . searchParams . append ( 'response_type' , 'code' ) ;
391
- authorizationUrl . searchParams . append ( 'scope' , scopes . join ( ' ' ) ) ;
392
+ authorizationUrl . searchParams . append ( 'scope' , scopeString ) ;
392
393
authorizationUrl . searchParams . append ( 'state' , state . toString ( ) ) ;
393
394
authorizationUrl . searchParams . append ( 'code_challenge' , codeChallenge ) ;
394
395
authorizationUrl . searchParams . append ( 'code_challenge_method' , 'S256' ) ;
@@ -400,10 +401,13 @@ export class DynamicAuthProvider implements vscode.AuthenticationProvider {
400
401
const promise = this . waitForAuthorizationCode ( callbackUri ) ;
401
402
402
403
// Open the browser for user authorization
404
+ this . _logger . info ( `Opening authorization URL for scopes: ${ scopeString } ` ) ;
405
+ this . _logger . trace ( `Authorization URL: ${ authorizationUrl . toString ( ) } ` ) ;
403
406
await this . _extHostWindow . openUri ( authorizationUrl . toString ( ) , { } ) ;
404
407
405
408
// Wait for the authorization code via a redirect
406
409
const { code } = await promise ;
410
+ this . _logger . info ( `Authorization code received for scopes: ${ scopeString } ` ) ;
407
411
408
412
if ( ! code ) {
409
413
throw new Error ( 'Authentication failed: No authorization code received' ) ;
0 commit comments