Skip to content

Commit 151fec2

Browse files
committed
azdev: use the localhost redirect URI for VS's client ID
Use the localhost redirect URI specified in the VS AAD application configuration. The localhost option allows us to use the system web view, whereas 'urn:ieft:wg:oauth:2.0:oob' does not.
1 parent 5968b55 commit 151fec2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/shared/Microsoft.AzureRepos/AzureDevOpsConstants.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ internal static class AzureDevOpsConstants
1313
// We share this to be able to consume existing access tokens from the VS caches
1414
public const string AadClientId = "872cd9fa-d31f-45e0-9eab-6e460a02d1f1";
1515

16-
// Standard redirect URI for native client 'v1 protocol' applications
17-
// https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-protocols-oauth-code#request-an-authorization-code
18-
public static readonly Uri AadRedirectUri = new Uri("urn:ietf:wg:oauth:2.0:oob");
16+
// Redirect URI specified by the Visual Studio application configuration
17+
public static readonly Uri AadRedirectUri = new Uri("http://localhost");
1918

2019
public const string VstsHostSuffix = ".visualstudio.com";
2120
public const string AzureDevOpsHost = "dev.azure.com";

0 commit comments

Comments
 (0)