I have two tokens: A proxy token I obtained through the OAuth Code Grant Flow for pre-authentication on ADFS and a SAP OAuth access token.
I want to access a SAP OData Service that is protected through a Web Application Proxy (WAP) with pre-authentication.
I have two tokens: A proxy token I obtained through the OAuth Code Grant Flow for pre-authentication on ADFS and a SAP OAuth access token.
As far as I know I have to create a combined token and send it over the WAP to the SAP OData Service.
{ "proxy_token":"zugfze....","access_token":"gzugzugdw..."
The WAP will extract and validate the proxy token. If it is valid it will leave just the access token in the request for the (OData) service.
I assume that I have to encode it in base64 and add it in the authorization header of the request as bearer:
Authorization: Bearer tdzwftzdqwfz...
This doesn't seem to work, because I am always redirected to the login page. Any ideas how to do that correctly? I cannot find any documentation about how to submit the combined token to the WAP.
Thanks,
GunVar