@@ -32,7 +32,7 @@ public static void Main(string[] args)
32
32
{
33
33
34
34
//PromptBehavior.RefreshSession will enforce an authn prompt every time. NOTE: Auto will take your windows login state if possible
35
- result = ctx . AcquireTokenAsync ( azDevResourceId , clientId , new Uri ( replyUri ) , promptBehavior ) . Result ;
35
+ result = ctx . AcquireTokenAsync ( azureDevOpsResourceId , clientId , new Uri ( replyUri ) , promptBehavior ) . Result ;
36
36
Console . WriteLine ( "Token expires on: " + result . ExpiresOn ) ;
37
37
38
38
var bearerAuthHeader = new AuthenticationHeaderValue ( "Bearer" , result . AccessToken ) ;
@@ -41,7 +41,7 @@ public static void Main(string[] args)
41
41
catch ( UnauthorizedAccessException )
42
42
{
43
43
// If the token has expired, prompt the user with a login prompt
44
- result = ctx . AcquireTokenAsync ( azDevResourceId , clientId , new Uri ( replyUri ) , promptBehavior ) . Result ;
44
+ result = ctx . AcquireTokenAsync ( azureDevOpsResourceId , clientId , new Uri ( replyUri ) , promptBehavior ) . Result ;
45
45
}
46
46
catch ( Exception ex )
47
47
{
@@ -72,7 +72,7 @@ private static void ListProjects(AuthenticationHeaderValue authHeader)
72
72
// use the httpclient
73
73
using ( var client = new HttpClient ( ) )
74
74
{
75
- client . BaseAddress = new Uri ( vstsCollectionUrl ) ;
75
+ client . BaseAddress = new Uri ( azureDevOpsOrganizationUrl ) ;
76
76
client . DefaultRequestHeaders . Accept . Clear ( ) ;
77
77
client . DefaultRequestHeaders . Accept . Add ( new MediaTypeWithQualityHeaderValue ( "application/json" ) ) ;
78
78
client . DefaultRequestHeaders . Add ( "User-Agent" , "ManagedClientConsoleAppSample" ) ;
0 commit comments