This page describes how to configure your SAML product to issue valid assertions for the SAML Bearer Assertion flow scenario.
The SAML assertion asserts the resource owner's identity. Basically there are two ways to obtain an assertion:
- Obtain the assertion from a Security Token Service or Identity Provider. In general every WS-Trust respectively SAML 2.0 compatbile product can be used. In this case you need to configure your Security Token Service to be able to issue SAML Assertions for the particular ABAP system.
- Let the OAuth 2.0 enabled application create the SAML assertion itself.
In any case the SAML Assertion is subject to certain requirements in order to be processed properly by the AS ABAP.
- SAML version 2.0 is required, subjection confirmation method is bearer
- The NameID element of the Subject must be used to express the user's identity. Based on the given format (e.g. E-Mail, Unspecified) the AS ABAP will derive the correct SAP user ID from it. Refer to the SAP documentation for a complete list of all the NameIDs supported.
- Either the AudienceRestriction or the Recipient element of the assertion must point to an OAuth 2.0 token endpoint URL, (e.g. https://asabap_host:port/sap/bc/sec/oauth2/token)
- The assertion must be signed by the Security Token Service/Identity Provider/other- SAML issuer key whose certificate is imported into the SAML2 transaction as primary or secondary signing certificate for a trusted partner. See Registration of an OAuth 2.0 Trusted Identity Provider
Optional: If activated in the OAuth 2.0 client configuration (transaction SOAUTH2) the SAML attribute client_id must be set and equal the client_id form parameter of the access token request.
- The SAML assertion will be bound to the access token request. This measure prevents that the SAML assertion could be used by another OAuth 2.0 client. A potential attacker would additionally need valid client credentials in order to make use of the assertion.
- The function to make the client_id check optional is available since SAP_BASIS 731 SP6.
See an example assertion which makes use of the client_id feature and states the SAP user ID directly using the NameID format unspecified .