Problem Statement
Is there a way to use Auth0 as an IdP without using SAML?
Solution
If you do not wish to use SAML as the protocol you can use OIDC instead.
Assume you want to set up one Auth0 tenant as an OIDC identity provider (IdP) and another tenant as a service provider (SP) that will use the former for authentication.
In this example you have the following tenants:
example-idp.us.auth0.com - the IdP tenant
example-sp.us.auth0.com - the SP tenant
Note:
You can use either the Front channel or the Back channel. The Front channel will use OIDC protocol with response_mode=form_post and response_type=id_token. The Back channel will use response_type=code. In most cases, you will probably want to use Back channel.
IdP tenant configuration:
- In the IdP tenant create a standard web application.
- (Front channel only) Set the application’s
Token Endpoint Authentication Method
toNone
. - Add the SP’s
/login/callback
endpoint (in this example,https://example-sp.us.auth0.com/login/callback
) to the application’sAllowed Callback URLs
. - Click Save.
SP tenant configuration:
- Go to Connections → Enterprise and create a new OIDC connection.
- Set the
Issuer URL
to the IdP’s.well-known/configuration
endpoint (in this example,https://example-idp.us.auth0.com/.well-known/configuration
) - Set the
Client ID
to the client ID of the application you created in the IdP tenant. - (Back channel only) Set the type to
Back channel
and set theClient Secret
to the client secret of the application you created in the IdP tenant. - Click Save.