File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/shared/Microsoft.AzureRepos Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -549,13 +549,11 @@ private bool UseServicePrincipal(out ServicePrincipalIdentity sp)
549
549
550
550
if ( hasCertThumbprint )
551
551
{
552
- bool hasX5CSetting = _context . Settings . TryGetSetting (
552
+ sp . SendX5C = _context . Settings . TryGetSetting (
553
553
AzureDevOpsConstants . EnvironmentVariables . ServicePrincipalCertificateSendX5C ,
554
554
Constants . GitConfiguration . Credential . SectionName ,
555
555
AzureDevOpsConstants . GitConfiguration . Credential . ServicePrincipalCertificateSendX5C ,
556
- out string certHasX5C ) ;
557
-
558
- sp . SendX5C = ! hasX5CSetting || certHasX5C != "false" ;
556
+ out string certHasX5CStr ) && certHasX5CStr . ToBooleanyOrDefault ( false ) ;
559
557
560
558
X509Certificate2 cert = X509Utils . GetCertificateByThumbprint ( certThumbprint ) ;
561
559
if ( cert is null )
You can’t perform that action at this time.
0 commit comments