ConductScience Sequences
Contents

Installation guide · Sign-in and tokens

Provider settings

Settings for Okta, Microsoft Entra ID, Keycloak and other providers.

Okta

  1. In the Okta admin console, go to Applications, Create App Integration, and choose OIDC, OpenID Connect and Web Application.
  2. Grant type: Authorization Code. Sign-in redirect URI: https://sequences.example.org/api/auth/callback.
  3. Copy the Client ID and Client secret from the application's General tab.
  4. To limit access to a group, open Security, API, the default authorization server and Claims, and add a claim named groups to the ID token, of value type Groups, with a filter that matches your group.
BIOSEQUENCE_OIDC_ISSUER=https://example.okta.com/oauth2/default
BIOSEQUENCE_OIDC_CLIENT_ID=<client ID>
BIOSEQUENCE_OIDC_CLIENT_SECRET_FILE=/config/oidc-client-secret
BIOSEQUENCE_OIDC_NAME=your Example Org Okta account
BIOSEQUENCE_OIDC_REQUIRED_GROUP=Sequences Users

The issuer of the default authorization server ends in /oauth2/default. With Okta's org authorization server it is the Okta domain alone, such as https://example.okta.com.

Microsoft Entra ID

  1. In the Microsoft Entra admin center, go to App registrations and New registration. Add a Web redirect URI: https://sequences.example.org/api/auth/callback.
  2. Under Certificates & secrets, add a client secret and copy its value.
  3. To limit access, add an app role under App roles, such as Sequences.User, then assign people or groups to it under Enterprise applications, the application, Users and groups. Turning on Assignment required there also stops everyone else at the Microsoft sign-in.

Entra ID tokens carry no email_verified claim, so name people by their sign-in name instead:

BIOSEQUENCE_OIDC_ISSUER=https://login.microsoftonline.com/<tenant ID>/v2.0
BIOSEQUENCE_OIDC_CLIENT_ID=<application (client) ID>
BIOSEQUENCE_OIDC_CLIENT_SECRET_FILE=/config/oidc-client-secret
BIOSEQUENCE_OIDC_CLIENT_AUTH=client_secret_post
BIOSEQUENCE_OIDC_NAME=your Example Org Microsoft account
BIOSEQUENCE_OIDC_USER_CLAIM=preferred_username
BIOSEQUENCE_OIDC_GROUP_CLAIM=roles
BIOSEQUENCE_OIDC_REQUIRED_GROUP=Sequences.User

Keycloak

  1. In your realm, go to Clients and Create client: type OpenID Connect, client ID sequences.
  2. Turn Client authentication on and keep Standard flow. Valid redirect URI: https://sequences.example.org/api/auth/callback.
  3. Copy the secret from the client's Credentials tab.
  4. To limit access to a group, open the client's Client scopes tab, then sequences-dedicated, Add mapper, By configuration and Group Membership. Set the token claim name to groups, with Add to ID token on. With Full group path on, the value is the group's path, such as /sequences-users.
BIOSEQUENCE_OIDC_ISSUER=https://keycloak.example.org/realms/<realm>
BIOSEQUENCE_OIDC_CLIENT_ID=sequences
BIOSEQUENCE_OIDC_CLIENT_SECRET_FILE=/config/oidc-client-secret
BIOSEQUENCE_OIDC_NAME=your Example Org account
BIOSEQUENCE_OIDC_REQUIRED_GROUP=/sequences-users

Keycloak sends email_verified from each user's profile, so people need a verified email address, or set BIOSEQUENCE_OIDC_USER_CLAIM=preferred_username.

Other providers

Any provider that publishes an OpenID Connect discovery document at <issuer>/.well-known/openid-configuration and supports the authorization code flow works with the same settings. If the provider sends the user claim or the groups only from its userinfo endpoint, the service asks for them there.

Guide version 1.63.0 · For Sequences 0.155.0