Skip to content

Commit 89a515e

Browse files
committed
Fixed issue with Browser opening on SSO requests with PowerShell 5
1 parent 699788a commit 89a515e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/StorageGRID-Webscale.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4569,7 +4569,7 @@ function global:Invoke-SgwServerSsoAuthentication {
45694569
Write-Verbose "Authenticating with identity provider"
45704570

45714571
$Body = "UserName=" + [System.Net.WebUtility]::UrlEncode($Server.Credential.UserName) + "&Password=" + [System.Net.WebUtility]::UrlEncode($Server.Credential.GetNetworkCredential().Password) + "&AuthMethod=FormsAuthentication"
4572-
$AuthenticationResponse = Invoke-WebRequest -Method POST -Uri $FormAuthenticationUri.Uri -ContentType "application/x-www-form-urlencoded" -Body $Body
4572+
$AuthenticationResponse = Invoke-WebRequest -Method POST -Uri $FormAuthenticationUri.Uri -ContentType "application/x-www-form-urlencoded" -Body $Body -UseBasicParsing
45734573

45744574
$SamlResponse = $AuthenticationResponse.InputFields | Where-Object { $_.name -eq "SAMLResponse" } | Select-Object -ExpandProperty value
45754575

0 commit comments

Comments
 (0)