Manage SSO connections
On the Admin Portal Enterprise SSO menu, you can see the SSO Connections details.
Add SAML connections
Once you've set up the SAML app on your Identity Provider, the Identity Provider will generate a SAML Metadata file.
The SAML metadata file contains information about the various SAML Authorities that can be used in SAML 2.0 protocol message exchanges.
Download the SAML Metadata file from your IdP and follow the below steps for adding the SAML connection.
- Click the button New Connection.
- Choose SAML as the type.
- Give your new connection a name.
- Add your Tenant (Eg: ory.com) and Product (Eg: flex).
- Add Allowed redirect URLs.
- Add Default redirect URL.
- Paste the Raw IdP XML.
- If ForceAuthn is checked, it means that the user will be forced to re-authenticate at SAML IdP, even if they have an active session.
- Click the button Save Changes.
Now you've successfully added your first SAML connection.
Add OIDC connections
Once you've registered the OIDC app on your Identity Provider, the Identity Provider will generate a clientId and clientSecret.
The clientSecret will be used to authenticate the OIDC client (in this case Ory Polis) and obtain the access_token.
Also get the OpenID provider discovery endpoint
(usually ending in /.well-known/openid-configuration) and follow the below steps for adding the OIDC connection.
- Click the button New Connection.
- Choose OIDC as the type.
- Give your new connection a name.
- Add your Tenant (Eg: ory.com) and Product (Eg: flex).
- Add Allowed redirect URLs.
- Add Default redirect URL.
- Enter the URL for OpenID Provider discovery which exposes the Provider Metadata.
- Paste the clientId and clientSecret values into Client ID [OIDC Provider]/Client Secret [OIDC Provider] fields in the UI.
- Click the button Save Changes.
Now you've successfully added your first OIDC connection.
Identity federation
Identity Federation is an enterprise feature, available only in the Ory Polis Enterprise License images. See Identity Federation for how it works.
From the Admin Portal go to Identity Federation > Apps.
Create an Identity Federation App
- Click New App.
- Under Select App Type, choose SAML or OIDC.
- Enter the following information:
- Name
- Tenant
- Product
- For a SAML app, the ACS URL (ACS URL of the SP; a SAML assertion is delivered over HTTP, so this must be an HTTP or HTTPS URL) and the Entity ID (Entity ID of the SP). The entity ID must not be used by any other Identity Federation App and cannot be changed after the app is created.
- For a SAML app whose SP receives assertions at more than one endpoint, optionally, Additional ACS URLs. See Additional ACS URLs.
- For an OIDC app, the Allowed redirect URLs. A client of the app must use one of these; the redirect URLs of the SSO connections behind the app are not consulted. See Redirect URLs for OIDC apps.
- Optionally, Tenants, to associate more tenants with the app
- For a SAML app, optionally, Attribute Mappings
- Click Create App.
Update an Identity Federation App
- From the list of Identity Federation Apps, click on the Edit icon of the app you want to update.
- You can update the following information:
- Name
- For a SAML app, the ACS URL and the Additional ACS URLs. To change the Entity ID, delete the app and create a new one.
- For an OIDC app, the Allowed redirect URLs
- Tenants
Additional ACS URLs
Most service providers have a single Assertion Consumer Service endpoint, and the ACS URL is all you need. Some own several
endpoints under one entity ID: SAP Cloud Identity Services, for example, answers on both the accounts.ondemand.com and
accounts.cloud.sap superdomains. List those extra endpoints under Additional ACS URLs.
The ACS URL and the Additional ACS URLs together form an allow-list, matched exactly:
- A sign-in request that names an Assertion Consumer Service URL is answered at that URL, but only if the URL is on the allow-list. A request naming any other URL is rejected, including one that differs only by a trailing slash or by case.
- A sign-in request that names no URL, and an IdP-initiated sign-in, is answered at the ACS URL.
To make a different endpoint the one that answers those requests, move it into ACS URL and move the previous value into Additional ACS URLs. The same URL cannot appear in both.
View IdP configuration
The apps list has two buttons that show what to give the service provider:
- SAML Configuration, for SAML apps: the SSO URL, the Entity ID / Audience URI / Audience Restriction, the X.509 Certificate and the IdP metadata.
- OIDC Configuration, for OIDC apps: the OpenID Connect discovery document of Ory Polis.
