Skip to main content
Version: 25.3

Authentication

Seqera Platform supports email and various OAuth providers for login authentication.

Identity providers

Configure login authentication with any of the following identity providers:

ProviderProtocolConfiguration
EmailMagic linkTOWER_SMTP_*
GitHubOAuthTOWER_GITHUB_*
GoogleOAuthTOWER_GOOGLE_*
KeycloakOIDCTOWER_OIDC_*
Entra IDOIDCTOWER_OIDC_*
OktaOIDCTOWER_OIDC_*

OpenID Connect configuration

note

You can combine different OAuth and OIDC provider types. However, only one OIDC provider can be configured at a time.

For OIDC providers, configure authentication with these environment variables:

VariableDescription
TOWER_OIDC_CLIENTThe client ID provided by your authentication service
TOWER_OIDC_SECRETThe client secret provided by your authentication service
TOWER_OIDC_ISSUERThe authentication service URL to which Seqera connects to authenticate the sign-in request

Some providers require the full authentication service URL while others require only the SSO root domain (without the trailing sub-directories).

In your OpenID provider settings, specify the following URL as a callback address or authorized redirect:

https://<HOST_OR_IP>/oauth/callback/oidc

Root users

Root users have administrative access to all Platform resources. Configure root users by their user ID or email address in a comma-separated list:

Environment variable

TOWER_ROOT_USERS=1,admin@your-company.example.com

tower.yml

tower:
admin:
root-users: "1,admin@your-company.example.com"

JWT secret

Configure the secret key used to sign JWT tokens for user authentication sessions. This is a required security setting for all Platform deployments.

warning

The JWT secret must remain consistent across all backend instances and restarts. Changing this value will invalidate all active user sessions and log out all users.

Environment variable

TOWER_JWT_SECRET=<your-secure-random-string-minimum-35-characters>

Requirements:

  • Minimum 35 characters recommended
  • Use a cryptographically secure random string
  • Keep this value secret and do not commit to version control

Generate a secure value:

openssl rand -base64 48

This secret is used to sign both access tokens and refresh tokens for user sessions.

Disable email login

Disable email-based (magic link) authentication when OAuth providers are configured.

note

This setting only takes effect when at least one OAuth provider (GitHub, Google) or OIDC is configured.

Environment variable

TOWER_AUTH_DISABLE_EMAIL=true

tower.yml

tower:
auth:
disable-email: true

Session management

Platform login sessions remain active as long as the application browser window remains open and active. Sessions use short-lived access tokens that are automatically refreshed via heartbeat.

SettingDefaultDescription
micronaut.security.token.generator.access-token.expiration3600s (1h)Short-lived token, auto-refreshed via heartbeat
micronaut.security.token.jwt.signatures.refresh-token.expiration6hSession idle timeout — users are logged out after this period of inactivity
micronaut.security.token.refresh.cookie.cookie-max-age12hBrowser cookie lifetime (should be ≥ refresh token)

tower.yml

micronaut:
security:
token:
jwt:
signatures:
refresh-token:
expiration: 8h
generator:
access-token:
expiration: 3600
refresh:
cookie:
cookie-max-age: 10h

Ephemeral endpoint configuration

Ephemeral endpoints provide temporary, single-use URLs for sensitive operations like passing pipeline parameters from Platform to Nextflow. These endpoints have a configurable lifetime to ensure security while supporting long-running workflows.

caution

If a submitted job takes longer to be scheduled than the refresh token expiration period (6 hours by default), the job will fail because Nextflow no longer has valid tokens to communicate with Platform. For workflows with extended queue times, increase both the refresh token expiration and ephemeral endpoint duration accordingly.

SettingDefaultDescription
tower.ephemeral.duration6hLifetime of ephemeral endpoints used for parameter passing to Nextflow

The ephemeral endpoint duration should align with your refresh token expiration to ensure that:

  • Tokens remain valid for the duration that endpoints are accessible
  • Jobs scheduled after extended queue times can still authenticate with Platform
  • Nextflow can successfully retrieve parameters and communicate with Platform

tower.yml

tower:
ephemeral:
duration: 8h

Example configuration for long-running workflows

For environments where jobs may wait in queue for extended periods, configure both settings together:

tower:
ephemeral:
duration: 12h

micronaut:
security:
token:
jwt:
signatures:
refresh-token:
expiration: 12h
refresh:
cookie:
cookie-max-age: 14h

User access allow list

Restrict access to specific user email addresses or domains. Allow list entries are case-insensitive.

Replace <PROVIDER> with github, google, or oidc. Use oidc for any authentication service based on OpenID Connect (Okta, Entra ID, Keycloak, etc.). Include each provider separately if you configure more than one.

tower.yml

tower:
auth:
<PROVIDER>:
allow-list:
- "*@your-company.example.com"
- "specific-user@another-company.example.net"