Skip to content

Commit 609e4f5

Browse files
authored
Add SendCertificateChain to Connect-Entra (#1413)
1 parent 14d166a commit 609e4f5

File tree

4 files changed

+40
-26
lines changed

4 files changed

+40
-26
lines changed

module/Entra/Microsoft.Entra/Authentication/Connect-Entra.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ function Connect-Entra {
2121
[Parameter(ParameterSetName = 'AppCertificateParameterSet', Position = 3, HelpMessage = 'The thumbprint of your certificate. The Certificate will be retrieved from the current user''s certificate store.')]
2222
[string] $CertificateThumbprint,
2323

24+
[Parameter(ParameterSetName='AppCertificateParameterSet', HelpMessage='Include x5c header in client claims when acquiring a token to enable subject name / issuer based authentication using given certificate.')]
25+
[bool] ${SendCertificateChain},
26+
2427
[Parameter(ParameterSetName = 'AppCertificateParameterSet', HelpMessage = 'An X.509 certificate supplied during invocation.')]
2528
[System.Security.Cryptography.X509Certificates.X509Certificate2] $Certificate,
2629

module/EntraBeta/Microsoft.Entra.Beta/Authentication/Connect-Entra.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ function Connect-Entra {
2121
[Parameter(ParameterSetName = 'AppCertificateParameterSet', Position = 3, HelpMessage = 'The thumbprint of your certificate. The Certificate will be retrieved from the current user''s certificate store.')]
2222
[string] $CertificateThumbprint,
2323

24+
[Parameter(ParameterSetName='AppCertificateParameterSet', HelpMessage='Include x5c header in client claims when acquiring a token to enable subject name / issuer based authentication using given certificate.')]
25+
[bool] ${SendCertificateChain},
26+
2427
[Parameter(ParameterSetName = 'AppCertificateParameterSet', HelpMessage = 'An X.509 certificate supplied during invocation.')]
2528
[System.Security.Cryptography.X509Certificates.X509Certificate2] $Certificate,
2629

module/docs/entra-powershell-beta/Authentication/Connect-Entra.md

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ Connect-Entra
4545
[-ClientId] <String>
4646
[[-CertificateSubjectName] <String>]
4747
[[-CertificateThumbprint] <String>]
48+
[-SendCertificateChain <Boolean>]
4849
[-Certificate <X509Certificate2>]
4950
[-TenantId <String>]
5051
[-ContextScope <ContextScope>]
@@ -330,7 +331,7 @@ Specifies the application ID of the service principal.
330331
331332
```yaml
332333
Type: System.String
333-
Parameter Sets: UserParameterSet, IdentityParameterSet
334+
Parameter Sets: UserParameterSet, IdentityParameterSet, AppCertificateParameterSet
334335
Aliases: AppId, ApplicationId
335336

336337
Required: False
@@ -340,18 +341,6 @@ Accept pipeline input: False
340341
Accept wildcard characters: False
341342
```
342343
343-
```yaml
344-
Type: System.String
345-
Parameter Sets: AppCertificateParameterSet
346-
Aliases: AppId, ApplicationId
347-
348-
Required: True
349-
Position: 1
350-
Default value: None
351-
Accept pipeline input: False
352-
Accept wildcard characters: False
353-
```
354-
355344
### -TenantId
356345
357346
Specifies the ID of a tenant.
@@ -553,6 +542,21 @@ Accept pipeline input: False
553542
Accept wildcard characters: False
554543
```
555544

545+
### -SendCertificateChain
546+
547+
Include x5c header in client claims when acquiring a token to enable subject name / issuer based authentication using given certificate.
548+
549+
```yaml
550+
Type: Boolean
551+
Parameter Sets: AppCertificateParameterSet
552+
Aliases:
553+
Required: False
554+
Position: Named
555+
Default value: None
556+
Accept pipeline input: False
557+
Accept wildcard characters: False
558+
```
559+
556560
### -ProgressAction
557561

558562
The ProgressAction parameter takes one of the ActionPreference enumeration values: SilentlyContinue, Stop, Continue, Inquire, Ignore, Suspend, or Break.

module/docs/entra-powershell-v1.0/Authentication/Connect-Entra.md

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ Connect-Entra
4545
[-ClientId] <String>
4646
[[-CertificateSubjectName] <String>]
4747
[[-CertificateThumbprint] <String>]
48+
[-SendCertificateChain <Boolean>]
4849
[-Certificate <X509Certificate2>]
4950
[-TenantId <String>]
5051
[-ContextScope <ContextScope>]
@@ -330,7 +331,7 @@ Specifies the application ID of the service principal.
330331
331332
```yaml
332333
Type: System.String
333-
Parameter Sets: UserParameterSet, IdentityParameterSet
334+
Parameter Sets: UserParameterSet, IdentityParameterSet, AppCertificateParameterSet
334335
Aliases: AppId, ApplicationId
335336

336337
Required: False
@@ -340,18 +341,6 @@ Accept pipeline input: False
340341
Accept wildcard characters: False
341342
```
342343
343-
```yaml
344-
Type: System.String
345-
Parameter Sets: AppCertificateParameterSet
346-
Aliases: AppId, ApplicationId
347-
348-
Required: True
349-
Position: 1
350-
Default value: None
351-
Accept pipeline input: False
352-
Accept wildcard characters: False
353-
```
354-
355344
### -TenantId
356345
357346
Specifies the ID of a tenant.
@@ -553,6 +542,21 @@ Accept pipeline input: False
553542
Accept wildcard characters: False
554543
```
555544

545+
### -SendCertificateChain
546+
547+
Include x5c header in client claims when acquiring a token to enable subject name / issuer based authentication using given certificate.
548+
549+
```yaml
550+
Type: Boolean
551+
Parameter Sets: AppCertificateParameterSet
552+
Aliases:
553+
Required: False
554+
Position: Named
555+
Default value: None
556+
Accept pipeline input: False
557+
Accept wildcard characters: False
558+
```
559+
556560
### -ProgressAction
557561

558562
The ProgressAction parameter takes one of the ActionPreference enumeration values: SilentlyContinue, Stop, Continue, Inquire, Ignore, Suspend, or Break.

0 commit comments

Comments
 (0)