Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This is not an issue, additional information for who are trying to achieve SAML OAuth Flow with Azure AD. OData Service HTTP handler #45

Open
devanshuGit opened this issue Nov 2, 2022 · 0 comments

Comments

@devanshuGit
Copy link

devanshuGit commented Nov 2, 2022

Even after following all the explanation in this repo https://github.com/azuredevcollege/SAP/blob/master/sap-oauth-saml-flow/README.md beautifully and in detail, here is one thing which got me stuck and postman call to OData service was failing to retrieve data and sending back for login (in our case to Azure AD login as SSO enabled). In layman terms it was ignoring the Authorization header with OAuth token (bearer) value.

We followed step by step to setup as follows:

  1. Azure AD and SAP SSO setup - Azure AD SSO config with SAP Netweaver
  2. Azure AD configuration - register applications (Frontend App, Enterprise App), export SAML metadata for trust configuration in SAP
  3. SAP NetWeaver Configuration - Generate user, setup federation an trust between SAP NetWeaver and Azure AD, setup OData service, configure OAuth client, configure scopes

While testing postman queries at last step were getting following error
image

Later when opened ticket with SAP, we got to know some configurations due to which it was not accepting OAuth token (it is not default enabled in SAP)
While creating new OData Service, default HTTP handler is different and it can't handle OAuth authorization.
It has to be replaced in ICF node with this /IWFND/CL_SODATA_HTTP_HNDL_OAT.
And Execute the report /IWFND/R_OAUTH_SCOPES to create an OAuth scope for your service.

Also in OAuth client registered for on-behalf-of authentication, please tick check-box for SSL certificate
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant