cancel
Showing results for 
Search instead for 
Did you mean: 

SAP BTP Custom IAS - XSUAA Token generation fails

sreehari_vpillai
Active Contributor
0 Kudos
2,022

Hello.

I have Custom IAS tenant activated for my sub account, and I created a user in IAS and synced the same user in sub account.
I am trying to generate access_token to test a service from postman . When I use a normal "Default Identity Provider" user and its password , it successfully generates the token. But when I try with Custom IAS user, it says "invalid_grant" and "User authentication failed" . Any clue ?
I am using sub account 's xsuaa's token url in postman.

View Entire Topic
osamu_tamaki
Advisor
Advisor

Hi,

Problem has already been resolved?
If not, please check the following note.
https://me.sap.com/notes/2766354

In the case you want to use IAS user with Password credential, you have to use hint parameter when getting the access token from XSUAA token endpoint.

Osamu

sreehari_vpillai
Active Contributor
0 Kudos

where were you all this time ? 🙂 It works for me.


=> login hint mentioned in the note did not work for me. It gave 400 error. I rather tried the alternatives provided.

=>I changed the default identity provider of the sub account to sap.customer ( SAP note 3042924 , SAP Help document )

=> Then generating token using password grant type worked.

sreehari_vpillai
Active Contributor
0 Kudos

login_hint did work. I did not url encode before making the call.