
OpenID Connect is an authentication protocol built on top of the OAuth 2.0 authorization framework. It provides a simple identity layer that allows applications to verify the identity of an end-user based on authentication performed by an authorization server. It also allows computing clients to obtain basic profile information about an end-user. OpenID Connect uses a RESTful HTTP API with a JSON data format.
While OAuth 2.0 handles authorization (what you can access), OIDC handles authentication (who you are). This is an important distinction.
One of OIDC’s core advantages over OAuth 2 is a JSON Web Token (JWT) named ID_Token, which can be returned by our OIDC implementation. SAP Customer Data Cloud supports the Auth Code, Implicit, and Hybrid flows using the response types id_token, token, and code.
Core Components and Terminology
OpenID Connect Provider (OP) – An identity provider that authenticates users and provides claims to Relying Parties. SAP Customer Data Cloud is a certified OP, which allows 3rd party sites (Relying Parties or RPs) to authenticate users against your existing user base.
For information on setting up your OP configuration, see OpenID Provider Setup.
Relying Party (RP) – An OAuth 2.0 client application that requires user authentication from an OP. SAP Customer Data Cloud is also a certified RP.
For information on setting up your RP configuration, see OpenID Connect RP Setup.
Flows – OpenID supports three authentication flows: Authorization Code, Implicit, and Hybrid.
For more information, learn more about OpenID Provider Setup and the OpenID specifications.
Claims – Information about a user, such as a first name or phone number.
Scopes – The type of data RPs can access (standard scopes include openid, email, and profile).
Tokens:
- Code: Used in the code flow to issue an access token
- ID Token: A JSON Web Token (JWT) signed by the OP containing user identity information and token metadata, for instance the time it was issued and its expiration time
- Access Token: Used for authorization (rather than authentication) to grant/deny resource access
- Refresh Token: Used to generate a new access token
For more information, refer to the OpenID Connect (OIDC) documentation in the SAP Help Portal.
A Complete Picture of OIDC in SAP Customer Data Cloud

SAP Customer Data Cloud provides end-to-end OIDC and OAuth 2.0 implementations, including support for Centralized Login Page (CLP), Single Sign-On (SSO), and Site Groups.
OIDC Flavors for SAP Customer Data Cloud

SAP Customer Data Cloud can be used in three different ways:
- As an RP (for instance,providing screensets and Facebook authentication)
- As an OP (for instance, Ticket Master might use SAP Customer Data cloud to identify its users)
- As both (for instance, in the case of multiple data centers)
OIDC Endpoints

Authorization Endpoint: Performs user authentication using request parameters defined by OAuth 2.0 and additional parameters and parameter values defined by OpenID Connect. Returns an authorization code used to request an id_token and access_token from the token endpoint.
Token Endpoint: Issues an access_token, id_token, and refresh_token to the RP.
UserInfo Endpoint: Provides user profile information.
Introspection Endpoint: Determines the validity status of a current access_token (valid or invalid). If the token is valid, it also returns details, such as its type, the client_id of the entity it was issued to, expiration info, and so on. If the token is invalid, it returns false and no additional information.
Token Introspection is used to determine the current status of a previously received access token. As an RP, it may be necessary to check whether your access token is still valid.
Claims returned from the Introspect endpoint for a valid access_token are:
- active - boolean (if false, no other claims are returned)
- scope
- client_id
- token_type
- exp (expiration time)
- iat (issued at)
- sub (subject)
- aud (audience)
- iss (issuer)
Construct the request to the introspect endpoint the same as for the token endpoint, using a Basic Auth token.
For more information refer to the OpenID Connect OP Setup documentation in the SAP Help Portal.
Authentication Flow Overview

The flow in the above diagram covers the user authentication stage requiring login.
- The RP generates the request and sends it to the Authorization endpoint.
- The Authorize endpoint redirects to the OP's proxy page.
- The Proxy page checks if the user is logged-in.
- If not logged in, the user is asked to log in.
- It's now certain the user is logged in.
- The proxy page redirects to the consentURL (on the partner endpoint).
- If consent is required, the user provides consent. The endpoint then validates the authorization.
- The consentURL (on the partner endpoint) redirects to the proxy page with the requested information (token/code).
- The proxy page validates the token.
- If valid, the proxy page redirects to the Authorize endpoint.
- The Authorize endpoint redirects back to the RP.
The proxy page points to login, consent, and error pages, which need to be hosted outside of Customer Data Cloud.
Demonstration
The above video demonstrates how to set up OIDC, and explains the code supporting it.