Establish Trust for Custom Identity Provider
-
The trust is configured by using an Open ID Connect or a SAML identity provider:
-
Configure Trust Using an OpenID Connect
The recommended approach to establish the trust is by using an OpenID Connect as it supports both:
-
Password grant flow that uses a username and password to generate the OAuth access token.
-
Client credential flow that uses client ID and client secret to generate the OAuth access token.
You can establish the trust between the subaccount and the Identity Authentication service by using an OpenID Connect. For more information, see Establish Trust Using OpenID Connect.
-
-
Configure Trust Using a SAML Identity Provider
For only client credential flow that uses client ID and client secret to generate the OAuth access token, you can establish the trust between the subaccount and the Identity Authentication service by using a SAML identity provider. For more information, see Establish Trust Using SAML Identity Provider.
-
-
Generation of an OAuth token using the password grant is only supported with OpenID Connect (OIDC). While generating an OAuth token using the password grant flow, you must perform any one of the following:
-
Pass the parameter login_hint={"origin":"sap.custom"} (URL encoded) in the token request where origin is the Key the Trust Configuration of the subaccount.
or
-
Change the default identity provider to custom identity provider by performing the following:
-
To get access to the APIs of the SAP Authorization and Trust Management service, use the SAP BTP command-line interface (btp CLI) to create API credentials. You can request an access token for the APIs in the targeted global account, directory, or subaccount. For more information, see Get Access to the APIs.
-
Send a request to the security settings API:
-
Authorization (Bearer Token) - Use the retrieved OAuth token.
-
Method - PATCH
-
URL - https://api.authentication.<region>.hana.ondemand.com/sap/rest/authorization/v2/securitySettings
-
Body (JSON format) -
{ "defaultIdp": "sap.custom" }
For more information, see Security Settings API

-
-
-