Skip to content

Audience

This section documents the configuration of audiences. Each audience defines a grouping boundary for clients and determines the aud claim in access tokens issued for clients in that audience.

See Audience for an overview of the concept.

audiences.<id>

KeyTypeDescriptionRequired
Default
<id>stringUnique identifier of the audience.YES
invitation-enabledbooleanEnable invitation-based registration for this audience.NO
false
sign-up-enabledbooleanEnable open registration for this audience.NO
true
token-audiencestringValue used as the aud claim in access tokens issued for clients in this audience.NO
<id>

audiences.<id>

The identifier is used to reference this audience from client, scope, and claim configurations.

audiences.<id>.invitation-enabled

When true, invitations can be created for this audience and redeemed during sign-up. This flag works in combination with sign-up-enabled to control registration behavior:

sign-up-enabledinvitation-enabledBehavior
truefalseOpen registration (default)
truetrueOpen registration + invitations (invitations can pre-assign claims)
falsefalseNo self-registration (Admin API only)
falsetrueInvitation-only sign-up

audiences.<id>.sign-up-enabled

When true, any user can create an account during the interactive flow. When false, self-registration is disabled — accounts can only be created through the Admin API or, if invitation-enabled is true, through an invitation.

audiences.<id>.token-audience

When not set, the audience identifier is used as the aud claim value. Set this explicitly when the token audience must be a URL or a value different from the configuration identifier.

Example

yaml
audiences:
  my-app:
    token-audience: "https://api.my-app.com"
  backoffice:
    sign-up-enabled: false
    invitation-enabled: true
    # token-audience defaults to "backoffice"