Skip to content

Commit

Permalink
azdev: use the localhost redirect URI for VS's client ID
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mjcheetham committed Nov 9, 2020
1 parent 5968b55 commit 151fec2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/shared/Microsoft.AzureRepos/AzureDevOpsConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ internal static class AzureDevOpsConstants
// We share this to be able to consume existing access tokens from the VS caches
public const string AadClientId = "872cd9fa-d31f-45e0-9eab-6e460a02d1f1";

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

public const string VstsHostSuffix = ".visualstudio.com";
public const string AzureDevOpsHost = "dev.azure.com";
Expand Down

0 comments on commit 151fec2

Please sign in to comment.