OIDC Configuration

This guide explains how to connect your identity provider to Consentio over OpenID Connect, so that your users sign in with their corporate credentials instead of a separate Consentio password.

Looking for SAML? See SAML Configuration.


Overview

Consentio is the relying party. It runs the authorization code flow against your IdP, reads the user's email address from the ID token, and matches it to a provisioned Consentio account. Consentio never creates an account from a login: the user has to exist first, through SCIM provisioning or manual provisioning by your integration contact.


Prerequisites

  • Administrative access to your identity provider.
  • An agreed list of email domains your organisation owns.
  • A Consentio integration contact who will either hand you a SCIM token or configure the OIDC application on your behalf.

Step 1: Register Consentio with your IdP

Create a confidential web application (authorization code flow) in your IdP with the following settings.

Setting Value
Application type Web application, confidential client
Grant type Authorization code
Redirect URI https://api.consentio.co/v2/oidc/callback/
Post-logout URI https://app.consentio.co/login
Scopes openid, email, profile

The trailing slash on the redirect URI is significant. Consentio sends redirect_uri exactly as shown, and an IdP that compares redirect URIs literally — as the OIDC specification requires — will reject the request if the registered value differs by so much as that slash.

Redirect URIs by environment

Environment Redirect URI
Production https://api.consentio.co/v2/oidc/callback/
Staging https://staging.api.consentio.co/v2/oidc/callback/
Sandbox https://sandbox.api.consentio.co/v2/oidc/callback/

Post-logout redirect URIs by environment

Consentio sends the user to your IdP's end-session endpoint on sign-out and asks to be returned to the application's login page. Allow-list that page:

Environment Post-logout redirect URI
Production https://app.consentio.co/login
Staging https://staging.app.consentio.co/login
Sandbox https://sandbox.app.consentio.co/login

Step 2: Provide your IdP details to Consentio

Send the following to your Consentio integration contact:

Parameter Description
Organisation name The name of your organisation
Allowed email domains The email domains your organisation owns
client_id Client ID issued by your IdP
client_secret Client secret issued by your IdP
issuer Your IdP's OIDC issuer URL
authorization_endpoint Authorization URL
token_endpoint Token exchange URL
Signed requests Whether your IdP requires signed authorization requests (see below)

Tip: most IdPs publish a discovery document at <issuer>/.well-known/openid-configuration containing all of these endpoints. Consentio also reads that document at runtime to verify ID tokens and to find your end-session endpoint, so it must stay reachable.


Step 3: Provision your users

Authentication only establishes who the user is; it does not grant access. Users have to exist in Consentio, and their workspace access comes from their roles and group memberships.

Set up SCIM provisioning, or ask your integration contact to provision users manually.


Step 4: Test the integration

  1. Open the Consentio login page for the environment you are testing.
  2. Choose to sign in with SSO.
  3. Enter a corporate email address on one of your allowed domains.
  4. You should be redirected to your IdP.
  5. After authenticating, you are returned to Consentio and signed in.

Claims Consentio requires

Claim Required Used for
email Yes Matching the token to a provisioned Consentio account
nonce Yes Binding the ID token to the login request it answers

The email claim must match the address the user entered on the login page. A login whose ID token carries a different address is rejected rather than silently resolved to another account.


Security profile

Availability: the key set endpoint, encrypted ID tokens and signed authorization requests described in this section are live on the development environment and are being rolled out to sandbox, staging and production. Confirm with your integration contact which of them are available on the environment you are testing against before you make them mandatory at your end.

Proof key for code exchange (PKCE)

Consentio sends a PKCE challenge on every authorization request using the S256 method, and presents the verifier when redeeming the code. No configuration is required; IdPs that ignore PKCE are unaffected.

Nonce and state

Each authorization request carries a single-use nonce, which must come back in the ID token, and a state parameter that Consentio signs and verifies on return. The corresponding login state is stored server-side, matched on the callback, and deleted once used, so an authorization code cannot be replayed.

Public key set

Consentio publishes its public keys as a JSON Web Key Set:

GET /v2/oidc/jwks

The response carries the platform's public keys with their kid, and is cacheable for 24 hours (Cache-Control: public, max-age=86400).

use alg Purpose
sig RS256 Verifying signatures Consentio produces, such as signed request objects
enc RSA-OAEP-256 Encrypting ID tokens to Consentio

During a key rotation the set temporarily publishes both the outgoing and the incoming key for a given use, each under its own kid. Fetch the set rather than pinning a single key, and respect the cache header so a rotation is picked up without intervention.

Encrypted ID tokens

If your IdP encrypts ID tokens, encrypt to the enc key from the key set. Consentio accepts one algorithm pair:

Layer Algorithm
Key management RSA-OAEP-256
Content encryption A256GCM

Anything else is refused rather than decrypted, so a downgrade surfaces as a failed login instead of a weaker session. Set the kid header on the JWE to the key you encrypted to; a token without one is tried against every active encryption key, which still works but is slower. Unencrypted ID tokens are accepted unchanged — encryption is opt-in at your end.

Signed authorization requests

Consentio can send the authorization request as a signed request object (JAR, RFC 9101), which is enabled per organisation and off by default. Ask your integration contact to turn it on if your IdP requires it.

When enabled, the request parameter carries a JWT signed with RS256, identified by the kid header and verifiable against the sig key in the key set. It is valid for five minutes and carries iss, aud, client_id, response_type, redirect_uri, scope, state, nonce, code_challenge, code_challenge_method, jti, iat and exp. Every parameter inside the object is also present on the query string, so an IdP that ignores request objects sees an ordinary authorization request.


Single logout

When a user signs out of Consentio, and their session was established over OIDC, Consentio builds a logout URL from the end_session_endpoint in your discovery document and hands it to the application to follow. It carries id_token_hint, client_id and post_logout_redirect_uri.

If your discovery document publishes no end_session_endpoint, the Consentio session is still ended; only the IdP session survives.


Next steps