cancel
Showing results for 
Search instead for 
Did you mean: 

OAuth2SAMLBearerAssertion for Oauth Authentication with external API

Former Member

Hello All,

We need to do Oauth authentication (type client grant) with external API from our UI5 application.

We configured OAuth2SAMLBearerAssertion with following attributes.

  • URL - Our Resource (target API) URL
  • Authentication : OAuth2SAMLBearerAssertion
  • Audience : https://account.ap1.hana.ondemand.com
  • Client Key : Our client key
  • Token Service URL : Oauth Server URL
  • Token Service User : Our client key
  • Token Service Password : Client Secret

However , when we use this destination in our app , it gives us "500 - Internal Server error" (looks like HCP is not able to map the attributes correctly to get authorization token).

If anyone got this destination type working for external API , please suggest.

Thanks !!

mrbass
Participant
0 Kudos

Have you resolved it? I'm having the same exact issue

Accepted Solutions (0)

Answers (4)

Answers (4)

yogananda
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi
you refer to this blog (if it helps to solve your problem)

https://blogs.sap.com/2018/08/31/how-to-get-an-access-token-from-the-xsuaa-service-for-external-api-...

Also if this helps

https://gist.github.com/scanacs-awuttig/0f1249e279690be97c297110b37d5e10

Also its been mentioned if your using password grant_type is not supported with custom IdP, as documented at https://launchpad.support.sap.com/#/notes/2766354

michaelrap
Explorer
0 Kudos

Ran into same problems, any good solutions?

thx!

quez
Participant
0 Kudos

I am trying doing the same and run into the same problemes. Did you ever solve this?

0 Kudos

Hey Dijesh,

I configured that type of destination a few weeks ago, did you solve the issue?

Best regards.