on 10-30-2019 12:08 PM
Hello Experts,
I need help to configure below scenario in SAP PO 7.5 system.
I want to establish connection with AWS server based API's using REST adapter provided by SAP.
This is 2 step method
1 - Call token URL by giving specific(fix) header
this URL will return token number and expiry time like below
{
"access_token": "eyJraWQiOiJpen..........",
"expires_in": 3600,
"token_type": "Bearer"
}
2 -Call API to post main JSON payload with access token as header received from token API.
I have currently configured REST receiver channel as below.
My question is how caching worked and how to use token which is received by token API.
Regards,
Chetan Risbud
Hi!
HTTP header in the format "Authorization: Bearer <access_token>" is added by adapter itself to the request headers.
Token caching is also provided by adapter using parameter "expires_in" which is returned by authorization server.
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
You might refer to the SAP Note: 2405166 - New Feature: Support for OAuth 2.0 Client Credentials and Resource Owner Password Credentials Grants for better undersatnding the process of getting access token.
This note, in turn, refers to RFC6749 and RFC6750 specifications where the rules of retrieving and further using of access token are defined:
At the first sight I couldn't see the way to use retrieved access token outside the internal OAuth authorization process flow implemented in REST adapter (strictly according to specifications mentioned above), unless its value is stored to some dynamic REST attribute, which could be used in HTTP header value pattern.
Regards, Evgeniy.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.