on 07-11-2018 11:51 AM
Hi,
I am implementing client credentials OAuth flow. Currently, I am using basic authentication to get token.
I was curious about using the OAuth Credentials Artifact instead. Unfortunately, I did not find much documentation on how to use it for simple HTTP scenario.
In release notes for 21 June 2014, I see that the OAuth Credentials Artifact can be used in SuccessFactors adapter using REST. The documentation only tells us how to deploy the artefact.
In addition, the SecureStoreService interface only has getUserCredential() method, which returns an object containing username and password.
Is it possible to use OAuth Credentials Artifact in other scenarios than mentioned above? Or is it just internal SAP feature?
Kind regards,
Bala
Hi Balachandar,
Seems there is no straightway via API, but you can try below way if you really want to use the oauth data in your credentials in script and similarily in your component if any . Mostly it works.. Simple tweak.
def service = ITApiFactory.getApi(SecureStoreService.class, null);
def credential = service.getUserCredential("testOdata");
def credentialprop = credential.getProperties();
String oauth = "Secret="+ new String(credentialprop.get("password"));
def others = credentialprop.get("credentialProperties");
def ClientID= others.get("user");
def LoginUrl=others.get("sec:server.url");
Cheers
Sreeni
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bala,
Check the following documentations about the OAuth:
https://help.sap.com/viewer/368c481cd6954bdfa5d0435479fd4eaf/Cloud/en-US/e5cb7ea5a4534c23bd88c16a518...
https://help.sap.com/viewer/65de2977205c403bbc107264b8eccf4b/Cloud/en-US/e526ca3998954d62833ffd5a19e...
Regards,
Balázs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bala,
For outbound please check the followings:
https://help.sap.com/viewer/368c481cd6954bdfa5d0435479fd4eaf/Cloud/en-US/58a75377cc154f44bb81c0376d3... https://help.sap.com/viewer/368c481cd6954bdfa5d0435479fd4eaf/Cloud/en-US/92dd2a6fdb6045f98d23c828d15...
Regards,
Balázs
Hi Bala,
Have you seen the Blog below? Perhaps the approach mentioned in it could help you to implement the OAuth:
HCI: Developing custom OAuth 2.0 authentication in iFlows
Regards,
Robson Chiarello
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.