How to logon using method Cyberark in the REST APIs for Privileged Cloud? when I try I have a response PASWS013E and the message is "Authentication failure for User"

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

How to logon using method Cyberark in the REST APIs for Privileged Cloud? when I try I have a response PASWS013E and the message is "Authentication failure for User"

Hi,everyone

If any body can help me with this topic.

 

In the documentation says

 

URL

https://<subdomain>.privilegecloud.cyberark.com/PasswordVault/API/auth/Cyberark/Logon/

in my header 

Content-Type application/json

in my Body

{

"username":"[email protected]",

"password":"mypassword of privilegecloud"

}

And the response is 403:

 

{

 "ErrorCode": "PASWS013E",

 "ErrorMessage": "Authentication failure for User [username@domine]."

}

 

thanks a lot

15 REPLIES 15

L7 Applicator

Hi @Angel Eduardo Hernandez Mendez​ 

 

Please check that the password is correct and doesn’t contain special characters that may need to be escaped.

 

Please also validate that the user is configured to authenticate using the CyberArk authentication method.

 

Hi, Malhar, can You show me because de user and password is the same that we use for acceso to privileged cloud and it works, but yes I have a especial character is "$", can You show me in privileged cloud how to configure cyberark authentication method that be great.

 

I find this

 

Method

 

Description

 

CyberArk password

 

You can assign this method when you create or edit a CyberArk user or when you edit an LDAP user.

 

Password policy: the default is a minimum of 6 alphanumeric, mixed case characters. To configure the password policy, contact Privilege Cloud support.

 

 

Thanks a lot

 

L5 Sessionator

Is your tenant ISPSS (cyberark.cloud), or P Cloud standard?

The API authentication process is different for ISPSS

Hi Pete, is cyberark.cloud

You need to follwo these instructions to authenticate against CyberArk Identity for API access to P Cloud: API token authentication for CyberArk Identity Security Platform Shared Services | Before you begin

Hi Pete,

Yes, I already made that configuration and it works perfectly for me, but I am trying with this other url "https://<subdomain>.privilegecloud.cyberark.cloud/PasswordVault/API/auth/Cyberark/Logon/" and in this part I can't make it works.

 

this is the Body:

Field_Content_versions_oct20__068Ht00000VffBcIAJ.png 

Response

Field_Content_versions_oct20__068Ht00000Vff9CIAR.png 

this is the documentation that find https://docs.cyberark.com/privilege-cloud-standard/latest/en/content/sdk/cyberark%20authentication%2...

 

That link is for privilege cloud standard, not ISPSS.

The method in the link won't work, and is not available for an ISPSS P Cloud tenant.

L4 Transporter

Try this: Authentication quick start | CyberArk Docs

 

Start with a POST to https://{identitytenant}.id.cyberark.cloud/Security/StartAuthentication with body {"User":"[email protected]"}

 

This should return a JSON containing a sessionID and a set of "mechanisms" that need to be completed (eg Password, OOB OTP).

 

You can then make one or more calls to https://{identitytenant}.id.cyberark.cloud/Security/AdvanceAuthentication passing the SesssionID and the MechanismID in the Body. For instance, for a password-only auth you would send {"sessionID":"<Sid>", "MechanismID":"<Mid>","Action":"Answer","Password":<mypassword>"}

 

For Identity App push OTP you would do the password call and then call https://{identitytenant}.id.cyberark.cloud/Security/AdvanceAuthentication passing {"sessionID":"<Sid>", "MechanismID":"<Mid>","Action":"StartOOB"} and then periodically send {"sessionID":"<Sid>", "MechanismID":"<Mid>","Action":"Poll"} until the user has completed the push.

 

L4 Transporter

Hi @Angel Eduardo Hernandez Mendez​ 

 

Since several community members answered your question, could you kindly share if any of these solutions resolved your issue?

If so, could you please mark the appropriate answer as "Select as Best" to assist other community members.

 

If the issue is still relevant, I would advise raising a ticket with our Support team for further assistance.

 

Thank you, Liad

No, but we use conjur cloud for this and it works, thanks for your help.

L0 Member

Hello @EduardoHM,

Could you get any solution for this? I also get the same problem as yours "PASWS013E".

URL

https://<subdomain>.privilegecloud.cyberark.com/PasswordVault/API/auth/Cyberark/Logon/

in my header 

Content-Type application/json

in my Body

{

"username":"user@domain.number",

"password":"mypassword of privilegecloud"

}

And the response is 403:

{

 "ErrorCode": "PASWS013E",

 "ErrorMessage": "Authentication failure for User [username@domine]."

}

Hi, Is the below will work for ISPSS?

 

https://<subdomain>.privilegecloud.cyberark.cloud/PasswordVault/API/auth/Cyberark/Logon/

No.

 

For ISPSS (Shared Services, where Identity and PrivCloud are integrated), you first perform a call to the "https://<identity-tenant-id>.id.cyberark.cloud/oauth2/platformtoken" API and get a session token back, then you can use that session directly by passing it in the "Authorization" header - for example to retrieve a list of all safes using the "https://<identity-tenant-id>.privilegecloud.cyberark.cloud/PasswordVault/API/safes" API.

 

Things that can trip people up:

  • The user you created in Identity must have the "Is OAuth confidential client" setting enabled
  • The user you created in Identity must be assigned to a role that allows login to Privilege Cloud, for example "Privilege Cloud Auditors"
  • The call to the "platformtoken" API must use the "Content-Type: application/x-www-form-urlencoded" header (not all HTTP request packages do this automatically)

L0 Member
  • 1552 Views
  • 15 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!