triauth for DrupalOIDC
Let your editors sign in to Drupal with one approval on their own device, through the OpenID Connect module.
- Sign-in through
- OpenID Connect bridge
- Available in
- Drupal 9.5 and newer, with the OpenID Connect module
- Set up in
- Configuration › Web services › OpenID Connect
About Drupal
Drupal is a free system for building and running websites, from small sites to large government, university, and corporate portals. Teams use it to publish structured content with many editors, roles, and languages.
Connect Drupal to triauth
Drupal signs people in through the triauth OpenID Connect bridge, with the OpenID Connect module. Once connected, the login form shows a Log in with button for the new client. Your editors click it, type their username, and approve on their own device. Nobody keeps a Drupal password, and when someone leaves, removing their identity records at your domain ends their access to the site as well.
How it works
In Drupal, install and enable the module OpenID Connect / OAuth client.
Open oidc.triauth.org and enter your domain. Paste the redirect address,
https://www.example.com/openid-connect/genericwith your own site's address in place ofwww.example.com, and click Connect app. The bridge gives you a client ID and a client secret.Open Configuration › Web services › OpenID Connect, enable the Generic client, and fill in its fields below with your domain in place of
example.com. Under User claims mapping, map the email and the name. Save.Field Value Client ID and Client secret from the bridge Authorization endpoint https://oidc.triauth.org/example.com/authorizeToken endpoint https://oidc.triauth.org/example.com/tokenUserInfo endpoint https://oidc.triauth.org/example.com/userinfoOpen the login form and click the Log in with button.
Checkpoint
Drupal's login form shows a Log in with button for the new client. Choosing it opens a page from the bridge that asks for the username, and the person's authenticator asks them to approve.
Good to know
- New people get a Drupal account at their first sign-in, within your site's registration setting, unless you tick Override registration settings. To let only one team in, limit the app to a group when you connect it.
- People who already have an account under the same email address are connected to it when Automatically connect existing users is on.
- Roles are managed in Drupal. The module's next major version adds a role mapping from the groups published at your domain, marked experimental for now.
For the person who connects the app
| Setting | Value |
|---|---|
| Redirect address | https://<your-site>/openid-connect/generic in the stable module, or /openid-connect/<client machine name> in version 3 |
| Where in Drupal | Configuration › Web services › OpenID Connect in the stable module, or Configuration › People › OpenID Connect in version 3 |
| Addresses | the stable module takes the three endpoints by hand, as above. Version 3 reads them from https://oidc.triauth.org/<your domain> with Auto discover endpoints and verifies the tokens against the JWKS |
| Scopes | the stable module asks for openid email and whatever the claims mapping needs |
The module keeps the client secret, so leave This app can't keep a secret unticked when you connect it on the bridge. The module's guide and its client configuration page explain every field.
Next steps
- Read the OpenID Connect bridge page for what every connected app gets and what the bridge keeps private.
- Read Roll out to your team to give everyone in your organization an identifier at your domain.
- Read Groups to limit the site to one team when you connect it.
- Read the OpenID Connect module's guide for every setting it offers.
All logos and trademarks belong to their respective owners and do not imply affiliation or endorsement of the organization or product by triauth, nor vice versa. The content provided on this page may include information from third-party sources. We do not assume any responsibility for the completeness, correctness, or applicability of the information. You should independently verify any details before relying on them.