on 01-22-2020 2:19 PM
Dear Expert,
i have question , how can i add "Bearer" in our XPATH ?
this is makes issue for my authentication since it was need authorization bearer
here is my design
this is when i do manual to get authorization token
{"code":0,"expire":2765,"msg":"ok","tenant_access_token":"t-7c2601499925817e5e69a4d47761d0eae8983f0c"}thank you
Hi carlosrodrigop
thanks for your information.
but the problem is this token is validity for 2765 seconds
and need to be refreshed.
is there any information that you can give to me ?
thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
do you need call the i-flow artifact by the orher one what you will access using this token every time
or use a storeged to maintain this token.
Storege ( https://blogs.sap.com/2020/01/04/how-to-read-write-sap-cpi-datastore-from-groovy/ )
I´ll do using a internal integration process what i Called if the message return a exception during the first attempt to connect and update the data storege after the token was changed.
The calling webservice with the token I´ll doing in other integration process called after the new token, or the principal token uf no error occurs
You can do the way like this.
Create a principal Iflow calling to internal i-Flow process
The first one is the process to get the token and the second one to access the webservice with the token.
in the second one, create a exception subprocess where you will call the create token ( first process ) and the proceed to access the same webservice getting the answer from webService. I did a similar process just for redirection as can you see in my blog
https://blogs.sap.com/?p=1033028
But in this case you always try to get a token first, the better way is store this token and just get a new one if the exception to access the webservice occurs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.