- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.
04-11-2024 07:33 AM
Hello everyone!
I was recently trying to allow saml authentication to pvwa using Cyberark Identity as a IdProvider. When i try to authenticate to pvwa using saml I am redirected to my portal's login page, but after authentication I go back to pvwa webpage and receive the "ITATS894E - An unhandled exception has occurred" error code. I did not find any helpfull information in pvwa's logs. When I try to access pvwa via Cyberark Identity host seems to be unreachable: It feels like a trivial task, but I got stuck and have no idea what might be missconfigured. Here are some more information about our infrasctructure:
PVWA version 12.2
Identity connector version 24.3.209
CyA Identity's "CyberArk Password Vault Web Access (PVWA)" app's trust settings:
Permissions:
part of web.config (data in red frame was added, but I receive the same errors without this additional data):
saml.config file:
<?xml version="1.0"?>
<SAMLConfiguration xmlns="urn:componentspace:SAML:2.0:configuration">
<ServiceProvider Name="https://xyz/PasswordVault/auth/saml" Description="PasswordVault Service Provider" />
<PartnerIdentityProviders>
<PartnerIdentityProvider Name="https://xyz.my.idaptive.app/<app key>" SingleSignOnServiceUrl="https://xyz.my.idaptive.app/applogin/appKey/<app key>/customerId/xyz">
<PartnerCertificates>
<Certificate String="MII...Tg==" />
</PartnerCertificates>
</PartnerIdentityProvider>
</PartnerIdentityProviders>
</SAMLConfiguration>
When i had a typo somewhere in saml.config file I was receiving PASWS035E - Authentication failure. Please contact your Administrator.
pvwa configuration:
Access Restrictions:
Cyberark.WebApplication log file:
[11/04/2024 | 15:22:08.962995] | {pid= 8188} | {tid= 4604} | :: | ITATS894E An unhandled exception has occurred. (Vault [CAMainVault] user [ksuchecki])
[11/04/2024 | 15:22:08.963095] | {pid= 8188} | {tid= 4604} | :: | ITATS894E An unhandled exception has occurred. (Vault [CAMainVault] user [ksuchecki])
Did any of You face this issue or have any idea how to solve it?
I was using the following articles with guide from course on administration of cyberark identity for partners:
CyberArk Password Vault Web Access SAML Single Sign-On (SSO) | CyberArk Docs
SAML authentication | CyberArk Docs
How to integrate CyberArk Identity SAML SSO with PVWA versions 11.2 and older (site.com)
guide mentioned above
04-12-2024 12:43 PM
The problem is that you are being redirected to the ACS URL as an end user, which is an API endpoint and not an accessible page (see the /api/ in the URL in your browser).
In Identity, if you uncheck 'Same as ACS URL', can you specify a redirect URL of "<PVWA>/PasswordVault/v10/logon/saml" ?
04-19-2024 06:59 AM
Hi!
I changed my configuration, but for some reason I still get redirected to "https://<pvwa>/PasswordVault/api/auth/saml/logon"...
Also tried configuring the url without "https://"(which should not matter) in this case. Just to be sure i also did iis reset on my pvwa serwer and restarted identity conector service. As expected when trying to authenticate to pvwa using saml the error code was the same as before ("An unhandled exception has occurred."). Thanks for Your reply and do You have any other ideas where the problem might be?
04-19-2024 08:11 AM
What concerns me here is the 'can't reach this page' error. I believe your 'Access Restrictions' in the PVWA are too strict. Could you adjust the 'Access Restrictions' in PVWA to the same SSO URL you have configured in SAML.config?
Either include the full URL with the app key and customer ID like: https://aac1234.my.idaptive.app/applogin/appKey/c22c4eb2-cece-414a-a2c7-eeb0d69afc0b/customerId/AAC1234
Or leave it at the base URL you have, add /* to the end, and set RegularExpression = Yes.
04-19-2024 08:12 AM
Also, you may revert the change I suggested previously. I don't actually think that is fixing anything!
04-23-2024 09:08 AM
As I came back to previous settings with "Same as ACS URL" box being checked, I modified Access Restriction in my Pvwa by
1) adding "/*" (https://xyz.my.idaptive.app/*) to BaseUrl and changing RegularExpression to yes - the outcome was the same
2) changing BaseUrl to https://xyz.my.idaptive.app/applogin/appKey/<key>/customerId/XYZ - the same value as "SingleSignOnUrl" in saml.config file. This time as i tried to connect to pvwa from Identity's interface the outcome was the same, but when I tried to authenticate to pvwa using saml method I was not redirected to authenticate to Identity, but received the following error:
which (correct me if I'm wrong) might indicate, that the BaseUrl=https://xyz.my.idaptive.app or BaseURL=https://xyz.my.idaptive.app/* with RegularExpresions=Yes is the correct configuration.
Now I left BaseUrl as https://xyz.my.idaptive.app/* with RegularExpression=yes.
One again I went through whole configuration hoping there is going to be just some silly typo, but i found nothing.
I can access pvwa web page from the machine with identity connector, also turned off firewall on both machines for a while, but received the same errors, so (for now) it surely is not about some ports being closed. Also when pinging pvwa machine from conector's machine using dns name the address is mapped with name correctly.
My saml.config lacks all data in red frame- maybe I should add some lines? Different guides says different things (or there is nothing about modifying this particular file)
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

