PASWS011E Missing mandatory parameter [username]. when logging in with iDP such as OKTA
Symptom
When logging in with an iDP solution such as OKTA, the following error is seen:
PASWS011E Missing mandatory parameter [username].
Environment
PVWA on version 10.8 or higher
Cause
This is caused by an issue in how the PVWA handles the iDP workflow. It can be fixed by doing the following:
Configure the IdP so that
1. IdP initiated flow will redirect to the page <pvwa domain>/PasswordVault/v10/logon/saml
2. SP initiated flow will continue to POST to the assertion consumer url: <pvwa domain>/PasswordVault/api/auth/saml/logon
The exact configuration necessary will vary between IdP implementations.
If the IdP does not support this it should be possible to separate the two flows into two separate apps. The first app will work with the saml logon page and the second will work with the REST logon endpoint. The application that works with the REST endpoint can be hidden on the IdP portal as it will only work for SP initiated flows.