Skip to content

Commit af43019

Browse files
jaggerclaude
andcommitted
docs: update New-TssSession reference for v0.62.0 (OtpCode + SkipCertificateCheck)
- OtpCode parameter type changed Int32 -> String in v0.62.0 to preserve leading zeros (e.g. '012345'). Update SYNTAX and parameter table. - Document the new -SkipCertificateCheck switch (available in all parameter sets) added in v0.62.0 alongside the RestSharp 112 upgrade. Hand-edited rather than regenerated via build.ps1 because the docs build task strips Jekyll frontmatter from every cmdlet page (see #452). Refs #452 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent f70c769 commit af43019

1 file changed

Lines changed: 30 additions & 9 deletions

File tree

docs/commands/authentication/New-TssSession.md

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,26 @@ Create new session
1212

1313
### clientSdk
1414
```
15-
New-TssSession -SecretServer <Uri> [-UseSdkClient] -ConfigPath <String> [-WhatIf] [-Confirm]
16-
[<CommonParameters>]
15+
New-TssSession -SecretServer <Uri> [-UseSdkClient] -ConfigPath <String> [-SkipCertificateCheck] [-WhatIf]
16+
[-Confirm] [<CommonParameters>]
1717
```
1818

1919
### winauth
2020
```
21-
New-TssSession -SecretServer <Uri> [-UseWindowsAuth] [-WhatIf] [-Confirm] [<CommonParameters>]
21+
New-TssSession -SecretServer <Uri> [-UseWindowsAuth] [-SkipCertificateCheck] [-WhatIf] [-Confirm]
22+
[<CommonParameters>]
2223
```
2324

2425
### sdk
2526
```
26-
New-TssSession -SecretServer <Uri> -AccessToken <Object> [-WhatIf] [-Confirm] [<CommonParameters>]
27+
New-TssSession -SecretServer <Uri> -AccessToken <Object> [-SkipCertificateCheck] [-WhatIf] [-Confirm]
28+
[<CommonParameters>]
2729
```
2830

2931
### new
3032
```
31-
New-TssSession -SecretServer <Uri> [-Credential] <PSCredential> [[-OtpCode] <Int32>] [-WhatIf] [-Confirm]
32-
[<CommonParameters>]
33+
New-TssSession -SecretServer <Uri> [-Credential] <PSCredential> [[-OtpCode] <String>] [-SkipCertificateCheck]
34+
[-WhatIf] [-Confirm] [<CommonParameters>]
3335
```
3436

3537
## DESCRIPTION
@@ -134,16 +136,17 @@ Accept wildcard characters: False
134136
```
135137
136138
### -OtpCode
137-
Provide 2FA code
139+
Provide 2FA code.
140+
Quote the value to preserve any leading zeros (e.g. `'012345'`).
138141
139142
```yaml
140-
Type: Int32
143+
Type: String
141144
Parameter Sets: new
142145
Aliases:
143146

144147
Required: False
145148
Position: 3
146-
Default value: 0
149+
Default value: None
147150
Accept pipeline input: False
148151
Accept wildcard characters: False
149152
```
@@ -208,6 +211,24 @@ Accept pipeline input: False
208211
Accept wildcard characters: False
209212
```
210213
214+
### -SkipCertificateCheck
215+
Skip TLS certificate validation for the session.
216+
Use only against lab/test Secret Server instances with self-signed certificates; this disables a key TLS protection and should not be used in production.
217+
218+
Available in all parameter sets as of v0.62.0 (RestSharp 112 no longer trusts self-signed certificates by default).
219+
220+
```yaml
221+
Type: SwitchParameter
222+
Parameter Sets: (All)
223+
Aliases:
224+
225+
Required: False
226+
Position: Named
227+
Default value: False
228+
Accept pipeline input: False
229+
Accept wildcard characters: False
230+
```
231+
211232
### -WhatIf
212233
Shows what would happen if the cmdlet runs.
213234
The cmdlet is not run.

0 commit comments

Comments
 (0)