Skip to Content
0
Jun 11, 2020 at 08:13 PM

401 error from Credstore in cloud foundry

367 Views

I am following the instruction mentioned in here https://github.wdf.sap.corp/asc-library/secure-store-docs/blob/master/dev-guide/code-samples.md to be able to get the key that I added in the credstore instance that I have in CF.

I added app authorization to the credstore service instance and I also added the list, create, ... to my app binding to the credstore instance that I have.

But still I am getting :

com.sap.cp.security.credstore.client.CredentialStoreErrorResponseException: Unexpected status code 401 while retrieving access token: POST https://credstoreauth.cfapps.sap.hana.ondemand.com/api/v1/token HTTP/1.1