@@ -39,7 +39,7 @@ class Program
39
39
40
40
private const string ConfigPrefix = "credential" ;
41
41
private const string SecretsNamespace = "git" ;
42
- private static readonly VsoTokenScope VsoCredentialScope = VsoTokenScope . CodeWrite | VsoTokenScope . PackagingRead ;
42
+ private static readonly VstsTokenScope VstsCredentialScope = VstsTokenScope . CodeWrite | VstsTokenScope . PackagingRead ;
43
43
private static readonly GithubTokenScope GithubCredentialScope = GithubTokenScope . Gist | GithubTokenScope . PublicKeyRead | GithubTokenScope . Repo ;
44
44
private static readonly List < string > CommandList = new List < string >
45
45
{
@@ -298,9 +298,9 @@ private static void Erase()
298
298
299
299
case AuthorityType . AzureDirectory :
300
300
case AuthorityType . MicrosoftAccount :
301
- Trace . WriteLine ( " deleting VSO credentials" ) ;
302
- BaseVsoAuthentication vsoAuth = authentication as BaseVsoAuthentication ;
303
- vsoAuth . DeleteCredentials ( operationArguments . TargetUri ) ;
301
+ Trace . WriteLine ( " deleting VSTS credentials" ) ;
302
+ BaseVstsAuthentication vstsAuth = authentication as BaseVstsAuthentication ;
303
+ vstsAuth . DeleteCredentials ( operationArguments . TargetUri ) ;
304
304
break ;
305
305
306
306
case AuthorityType . GitHub :
@@ -358,7 +358,7 @@ private static void Get()
358
358
break ;
359
359
360
360
case AuthorityType . AzureDirectory :
361
- VsoAadAuthentication aadAuth = authentication as VsoAadAuthentication ;
361
+ VstsAadAuthentication aadAuth = authentication as VstsAadAuthentication ;
362
362
363
363
Task . Run ( async ( ) =>
364
364
{
@@ -397,7 +397,7 @@ private static void Get()
397
397
break ;
398
398
399
399
case AuthorityType . MicrosoftAccount :
400
- VsoMsaAuthentication msaAuth = authentication as VsoMsaAuthentication ;
400
+ VstsMsaAuthentication msaAuth = authentication as VstsMsaAuthentication ;
401
401
402
402
Task . Run ( async ( ) =>
403
403
{
@@ -536,8 +536,8 @@ private static BaseAuthentication CreateAuthentication(OperationArguments operat
536
536
Trace . WriteLine ( " detecting authority type" ) ;
537
537
538
538
// detect the authority
539
- if ( BaseVsoAuthentication . GetAuthentication ( operationArguments . TargetUri ,
540
- VsoCredentialScope ,
539
+ if ( BaseVstsAuthentication . GetAuthentication ( operationArguments . TargetUri ,
540
+ VstsCredentialScope ,
541
541
secrets ,
542
542
null ,
543
543
out authority )
@@ -554,12 +554,12 @@ private static BaseAuthentication CreateAuthentication(OperationArguments operat
554
554
out authority ) )
555
555
{
556
556
// set the authority type based on the returned value
557
- if ( authority is VsoMsaAuthentication )
557
+ if ( authority is VstsMsaAuthentication )
558
558
{
559
559
operationArguments . Authority = AuthorityType . MicrosoftAccount ;
560
560
goto case AuthorityType . MicrosoftAccount ;
561
561
}
562
- else if ( authority is VsoAadAuthentication )
562
+ else if ( authority is VstsAadAuthentication )
563
563
{
564
564
operationArguments . Authority = AuthorityType . AzureDirectory ;
565
565
goto case AuthorityType . AzureDirectory ;
@@ -578,8 +578,8 @@ private static BaseAuthentication CreateAuthentication(OperationArguments operat
578
578
Trace . WriteLine ( " authority is Azure Directory" ) ;
579
579
580
580
Guid tenantId = Guid . Empty ;
581
- // return the allocated authority or a generic AAD backed VSO authentication object
582
- return authority ?? new VsoAadAuthentication ( Guid . Empty , VsoCredentialScope , secrets ) ;
581
+ // return the allocated authority or a generic AAD backed VSTS authentication object
582
+ return authority ?? new VstsAadAuthentication ( Guid . Empty , VstsCredentialScope , secrets ) ;
583
583
584
584
case AuthorityType . Basic :
585
585
default :
@@ -605,8 +605,8 @@ private static BaseAuthentication CreateAuthentication(OperationArguments operat
605
605
case AuthorityType . MicrosoftAccount :
606
606
Trace . WriteLine ( " authority is Microsoft Live" ) ;
607
607
608
- // return the allocated authority or a generic MSA backed VSO authentication object
609
- return authority ?? new VsoMsaAuthentication ( VsoCredentialScope , secrets ) ;
608
+ // return the allocated authority or a generic MSA backed VSTS authentication object
609
+ return authority ?? new VstsMsaAuthentication ( VstsCredentialScope , secrets ) ;
610
610
}
611
611
}
612
612
0 commit comments