diff --git a/src/shared/Core/Authentication/OAuth/OAuth2Client.cs b/src/shared/Core/Authentication/OAuth/OAuth2Client.cs index 27834d2aa..cc70b9646 100644 --- a/src/shared/Core/Authentication/OAuth/OAuth2Client.cs +++ b/src/shared/Core/Authentication/OAuth/OAuth2Client.cs @@ -99,6 +99,8 @@ public IOAuth2CodeGenerator CodeGenerator set => _codeGenerator = value; } + public Uri RedirectUri => _redirectUri; + #region IOAuth2Client public async Task GetAuthorizationCodeAsync(IEnumerable scopes, diff --git a/src/shared/GitHub/GitHubAuthentication.cs b/src/shared/GitHub/GitHubAuthentication.cs index 13c162495..e033c79f4 100644 --- a/src/shared/GitHub/GitHubAuthentication.cs +++ b/src/shared/GitHub/GitHubAuthentication.cs @@ -437,6 +437,7 @@ public async Task GetOAuthTokenViaBrowserAsync(Uri targetUri, // Write message to the terminal (if any is attached) for some feedback that we're waiting for a web response Context.Terminal.WriteLine("info: please complete authentication in your browser..."); + Context.Terminal.WriteLine($"uri: {oauthClient.RedirectUri}"); OAuth2AuthorizationCodeResult authCodeResult = await oauthClient.GetAuthorizationCodeAsync(scopes, browser, queryParams, CancellationToken.None); diff --git a/src/shared/GitLab/GitLabAuthentication.cs b/src/shared/GitLab/GitLabAuthentication.cs index 8a7ba17bf..0785716f7 100644 --- a/src/shared/GitLab/GitLabAuthentication.cs +++ b/src/shared/GitLab/GitLabAuthentication.cs @@ -278,6 +278,7 @@ public async Task GetOAuthTokenViaBrowserAsync(Uri targetUri, // Write message to the terminal (if any is attached) for some feedback that we're waiting for a web response Context.Terminal.WriteLine("info: please complete authentication in your browser..."); + Context.Terminal.WriteLine($"uri: {oauthClient.RedirectUri}"); OAuth2AuthorizationCodeResult authCodeResult = await oauthClient.GetAuthorizationCodeAsync(scopes, browser, CancellationToken.None);