Skip to content

Commit

Permalink
New-TssSession - closes #109
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmelton committed Mar 5, 2021
1 parent 47e3b1c commit f4061e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions/New-Session.ps1
Expand Up @@ -115,7 +115,7 @@ function New-Session {
if ($outputTssSession.SecretServer) {
Write-Verbose "SecretServer host: $($outputTssSession.SecretServer)"
if ($newTssParams.ContainsKey('Credential')) {
$invokeParams.Uri = $outputTssSession.SecretServer + 'oauth2/token'
$invokeParams.Uri = $outputTssSession.SecretServer.TrimEnd('/'), 'oauth2', 'token' -join '/'

$oauth2Body = [Ordered]@{ }
if ($newTssParams.ContainsKey('Credential')) {
Expand Down

0 comments on commit f4061e5

Please sign in to comment.