> ## Documentation Index
> Fetch the complete documentation index at: https://help.allthenticate.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Set up Allthenticate as an OpenID Connect provider

> Register an OpenID Connect client in the Allthenticate admin portal, choose scopes and flows, and connect your app using the discovery URL and client secret.

> [!NOTE]
>
> Unlike a password-based identity provider, Allthenticate keeps each user's private key in their phone's secure hardware, where it never leaves, and every sign-in is confirmed by that trusted phone.

## Before you start

* Admin access to the Allthenticate admin portal at [admin.allthenticate.com](https://admin.allthenticate.com).
* The redirect (callback) URI or URIs your app uses after sign-in.
* Users who will sign in have the Allthenticator app set up. See [Set up the Allthenticator app](https://help.allthenticate.com/get-started/allthenticator-app.md).

## Register the client in Allthenticate

**1. Open the OpenID Connect tab**

In the admin portal, select **SSO** in the sidebar, then the **OpenID Connect** tab.

**2. Add the client**

Select **Add Client** and enter a **Client Name**.

**3. Choose the allowed scopes**

Check any of **OpenID**, **Profile** and **Email**. Without **OpenID**, the client uses plain OAuth 2.0 and receives no ID token. See [Scopes and claims](#scopes-and-claims).

**4. Enter the redirect URIs**

Under **Redirect URIs**, enter each callback URL on its own line. Each must be an absolute `https://` URL without a fragment (`http://` is accepted only for `localhost` and loopback addresses). A sign-in request must use one of these URIs exactly.

**5. Choose response types and grant type**

Check the **Response types** your app requests (**Code**, **Token**, **ID Token**), then pick the matching **Allowed Grant Types** value. See [Choosing a flow](#choosing-a-flow).

**6. Choose the token endpoint auth method**

Under **Token Endpoint Auth Method**, pick **Client Secret Basic** or **Client Secret Post** for an app that can keep a secret on a server. Pick **None** only for a public client, such as a single-page or mobile app, that can't keep a secret.

![Register an OIDC Client dialog with Client Name, Allowed scopes OpenID, Profile and Email checked, a redirect URI, response type Code checked, Allowed Grant Types set to Authorization Code and Token Endpoint Auth Method set to Client Secret Basic](https://mintcdn.com/allthenticate-e69095b0/7yUU7sq9zDstLP_S/images/help/sso/portal/oidc-add-client.png?fit=max\&auto=format\&n=7yUU7sq9zDstLP_S\&q=85\&s=696b3f3813b27fd69391460357d11a31)

A completed client registration using Authorization Code and Client Secret Basic.

**7. Save and copy the secret**

Select **Save**. For a client with a secret, Allthenticate shows the **Client ID** and **Client Secret** once. Copy both into your app, then select **I have saved the secret**.

![Client secret dialog showing the Client ID and Client Secret fields with copy buttons and an I have saved the secret button](https://mintcdn.com/allthenticate-e69095b0/7yUU7sq9zDstLP_S/images/help/sso/portal/oidc-client-secret.png?fit=max\&auto=format\&n=7yUU7sq9zDstLP_S\&q=85\&s=c3116d4a09aa4724d744fe63e6999b9f)

The client secret is shown only once.

> [!WARNING]
>
> The client secret is shown only once. If you lose it, see [I lost the client secret](#i-lost-the-client-secret).

## Choosing a flow

| Response types checked | Allowed grant type |
| - | - |
| Code | Authorization Code |
| Token, ID Token, or both | Implicit Flow |
| Code with Token, ID Token, or both | Hybrid |

For most apps, use **Code** with **Authorization Code**. Allthenticate supports PKCE with the `S256` method.

## Connect your app

Most OIDC libraries need only the discovery URL, the client ID and the client secret:

| Setting | Value |
| - | - |
| Discovery URL | `https://oidc.allthenticate.com/.well-known/openid-configuration` |
| Issuer | `https://oidc.allthenticate.com` |
| Authorization endpoint | `https://oidc.allthenticate.com/oidcauth` |
| Token endpoint | `https://oidc.allthenticate.com/oidctoken` |
| UserInfo endpoint | `https://oidc.allthenticate.com/oidcuserinfo` |
| JWKS URI | `https://oidc.allthenticate.com/jwks` |

ID tokens are signed with RS256. Access tokens and ID tokens are valid for one hour, and an authorization code must be redeemed within 60 seconds of being issued.

### App guides

For these apps, follow their guide for the exact values and screens on the app's side.

* [Ping DaVinci](https://help.allthenticate.com/help/sso/apps/ping-davinci.md): OIDC

## Scopes and claims

| Scope | Claims added |
| - | - |
| `openid` | `sub`, the user's Allthenticate username. Also required to call the UserInfo endpoint. |
| `profile` | `name`, `given_name`, `family_name`, `preferred_username`, `username` |
| `email` | `email`, `email_verified`, `preferred_username`, `username` |

`email` is a confirmed address on the user's account, and `preferred_username` and `username` carry the same email address.

A sign-in request can ask only for scopes the client is allowed. For example, a request for `openid email profile` fails if the client allows only **OpenID** and **Profile**.

## Test sign-in

1. Open a private or incognito browser window.
2. Start sign-in from your app. It redirects you to Allthenticate.
3. Approve the request on your phone. The first time you sign in from a browser, you scan a QR code with the Allthenticator app to trust that browser.
4. You return to the redirect URI, signed in.

## Troubleshooting

> [accordion] The flow fails before the Allthenticate sign-in page appears
>
> The request doesn't match the client registration. Open the client in the admin portal and compare:
>
> * **Client ID** and client secret
> * The redirect URI, which must match one registered URI exactly
> * The requested scopes, which must all be allowed for the client
> * The requested response type, which must be checked for the client

> [accordion] The flow fails after the user approves on the phone
>
> The user's Allthenticate account may be suspended. On the **Users** page, a suspended user shows **Re-activate user**. Re-activating requires approval on the admin's phone.

> [accordion] The UserInfo endpoint returns 403
>
> The access token was issued without the `openid` scope. Allow **OpenID** for the client and request `openid` in the sign-in request.

> [accordion] I lost the client secret
>
> Allthenticate stores only a hash of the client secret, so it can't show it again. Open the client, select **Rotate secret** and confirm on your phone. The old secret stops working at once and the client's access tokens are revoked, so update your app with the new secret straight away. Public clients (auth method **None**) have no secret to rotate.

Still stuck? Email [help@allthenticate.com](mailto:help@allthenticate.com) with the client name and the time of the failed sign-in.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.