on 2023 Mar 22 12:25 PM
Hello,
We have a UI5 application on SAP BTP CF in which we want to consume an (OData) API provided by a C# application deployed on Azure.
To access the UI5 application, the user should authenticate with Azure AD.
The SSO configuration between SAP BTP CF and Azure AD has been done and is working as expected.
After successful authentication, we want to forward the user identity to the C# application with each HTTP request.
In order to forward the user identity we already tried the following:
"AADSTS5002726: Invalid JWT token. Found unsupported token header. Supported headers are: 'alg','typ','x5t','x5c','kid','use','enc','ctx','nonce','rh','kdf_ver'\r\nTrace ID: 3063dbcc-627e-4e08-b0ca-676c5cc61900\r\nCorrelation ID: 963c104e-c2a2-44bd-aef3-2fd958211718\r\nTimestamp: 2023-03-14 10:55:18Z",
It seems like the UAA token contains headers (JID, JKU) which are not supported by Azure.
We already received feedback from our SAP contacts who did some investigation on this exchange error. They've suggested that OAuth2JWTBearer token exchanges are not suitable for our use case and that we should go for the OAuth2SAMLBearerAssertion flow. However as already mentioned above, this flow is not supported on Azure side.
We are now a bit stuck on the next steps and we are looking for tips/help.
Does anybody already have experience with this kind of integration between SAP BTP and Azure?
What else could we try besides OAuth2SAMLBearerAssertion or OAuth2JWTBearer to support our scenario?
Any help would be appreciated!
Thanks
Request clarification before answering.
Thanks pavel.penaz for the heads-up;
Dear maartenflexso, you cannot be using OAuth2SAMLBearerAssertion destination from SAP BTP towards Azure (but it could be done the other way around though). This is because there is no way one could create an IDP on Azure side to validate the SAMLAssertion coming from an OAuth2SAMLBearerAssertion destination.
Instead you must be using the On-behalf-of (OBO) destination flow.
Thus, I wrote Service to service calls from SAP BTP to Microsoft Azure with BTP destinations on purpose to help with BTP --> Azure integration flow with the principal user propagation.
Please refer to the first chapter of this blog where I describe what you need.
In case of further question you may use the comments section under the blog itself; I hope that helps; Piotr
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Maarten, check out this blog that offers some pointers how to implement this through destinations on SAP BTP, can you check if it goes in the right direction: Service to service calls from SAP BTP to Microsoft Azure with BTP destinations
+ piotr.tesny if any recommendation to add.
Thanks.
Pavel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
21 | |
9 | |
7 | |
6 | |
6 | |
5 | |
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.