Okta
Sign in to the engine with Okta over OIDC, with roles from Okta groups.
On this page
Connect the engine to Okta as an OIDC web app. Okta's sign-on policies and MFA apply, and Okta groups decide the engine role.
Before you start
- An Okta org where you can create app integrations.
- The engine on https, with
ENGINE_PUBLIC_URLset, for examplehttps://engine.example.test.
Steps
1. Create the app integration
In the Okta admin console, open Applications → Create App Integration, choose OIDC - OpenID Connect and Web Application. Set:
- Grant type: Authorization Code.
- Sign-in redirect URI:
https://engine.example.test/api/auth/sso/oidc/callback. - Assignments: the groups that should reach the engine.
Copy the Client ID and Client secret.
2. Send groups in the id_token
On the app's Sign On tab, edit OpenID Connect ID Token and set a Groups claim filter: claim name groups, Matches regex ^medhook-.* (or the filter that fits your group names).
3. Configure the engine
The issuer is your Okta org URL, or the authorization server's issuer URI if you use a custom one (it ends in /oauth2/default for the default server).
ENGINE_OIDC_ISSUER=<your Okta issuer>
ENGINE_OIDC_CLIENT_ID=<Client ID>
ENGINE_OIDC_CLIENT_SECRET=<from your secrets manager>
ENGINE_OIDC_LABEL="Okta"
ENGINE_OIDC_GROUP_ROLES="medhook-admins=admin;medhook-operators=operator;medhook-viewers=viewer"Okta sends email_verified, so existing engine accounts without a password or the admin role link by email. Those with one link from Settings → Single sign-on → Other identity providers → Link my account.
4. Require MFA (optional)
Require MFA in the app's authentication policy. Set ENGINE_OIDC_REQUIRE_MFA=true to have the engine refuse any sign-in without mfa in the amr claim.
5. Test
Restart the engine, choose Continue with Okta on /sign-in, and check each mapped group's role.
🎉 Okta now decides who can sign in and with which role.