Replies: 1 comment 2 replies
-
you can try and authenticate without using the module and see if it succeeds or not: $loginResponse = New-SAMLInteractive -LoginIDP $loginURL
$LogonRequest = @{ }
$Uri = "https://pvwa-company/PasswordVault"
$LogonRequest['Method'] = 'POST'
$LogonRequest['Body'] = @{'SAMLResponse' = $loginResponse ; 'apiUse' = $true } | ConvertTo-Json
$LogonRequest['ContentType'] = 'application/x-www-form-urlencoded'
$LogonRequest['Uri'] = "$Uri/api/auth/SAML/Logon"
Invoke-RestMethod @LogonRequest |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm trying to authenticate using SAML Okta, see below. For some reason, I'm getting an error message on line 2. I'm able to get a valid login response from SAML but PASSession failed to authenticate. Using PVWA UI, I'm able to log in using Okta with no issues. Just wondering if anybody has ideas on how to troubleshoot this. I appreciate any help.
Code:
$loginResponse = New-SAMLInteractive -LoginIDP $loginURL New-PASSession -SAMLAuth -concurrentSession $true -BaseURI $baseURL -SAMLResponse $loginResponse
Error message:
Beta Was this translation helpful? Give feedback.
All reactions