Skip to content

triauth for DrupalOIDC

Let your editors sign in to Drupal with one approval on their own device, through the OpenID Connect module.

  • Websites and publishing
  • Open source
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

  1. In Drupal, install and enable the module OpenID Connect / OAuth client.

  2. Open oidc.triauth.org and enter your domain. Paste the redirect address, https://www.example.com/openid-connect/generic with your own site's address in place of www.example.com, and click Connect app. The bridge gives you a client ID and a client secret.

  3. 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.

    FieldValue
    Client ID and Client secretfrom the bridge
    Authorization endpointhttps://oidc.triauth.org/example.com/authorize
    Token endpointhttps://oidc.triauth.org/example.com/token
    UserInfo endpointhttps://oidc.triauth.org/example.com/userinfo
  4. Open 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

SettingValue
Redirect addresshttps://<your-site>/openid-connect/generic in the stable module, or /openid-connect/<client machine name> in version 3
Where in DrupalConfiguration › Web services › OpenID Connect in the stable module, or Configuration › People › OpenID Connect in version 3
Addressesthe 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
Scopesthe 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

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.