Skip to content

docs: document the OAuth2 additional audiences setting - #67

Merged
secana merged 1 commit into
mainfrom
docs/oauth2-additional-audiences
Sep 1, 2026
Merged

docs: document the OAuth2 additional audiences setting#67
secana merged 1 commit into
mainfrom
docs/oauth2-additional-audiences

Conversation

@secana

@secana secana commented Sep 1, 2026

Copy link
Copy Markdown
Member

Documents the oauth2.additional_audiences setting added in kellnr/kellnr#1357 (chart support in kellnr/helm#93).

Config values

A ConfigCard in the OAuth2/OIDC table, between Client Secret and Scopes to match the order of the settings struct: TOML key, KELLNR_OAUTH2__ADDITIONAL_AUDIENCES, default [].

Multiple Audiences

A prose block in the OAuth2 setup section, after Identity Provider Setup and before User Provisioning. Providers such as Zitadel issue ID tokens whose aud claim lists several audiences rather than the client ID alone, which Kellnr rejects by default because every audience named in a token can present that token to Kellnr.

It covers the two points a reader trips over:

  • the configured client_id must still appear in aud; the allowlist only covers the additional entries
  • as an environment variable the list is comma-separated

Nothing needed elsewhere

The CLI flag table lists only a handful of notable flags and already states that every config value has a matching --section-key argument. The Helm section links to the chart repository rather than documenting individual values.

Verification

npm run type-check, npm run lint and npm run build all pass. npm run test:unit exits 1 with "No test files found", which is pre-existing: the repository has no test files.

Unrelated observation

Running the build regenerates public/rss.xml with a large diff, because the committed copy is stale and missing the 6.8.0 changelog entry. I reverted it to keep this change focused, but public/rss.xml on main is out of sync with src/data/changelog.json and deserves a separate look.

Add `additional_audiences` to the OAuth2/OIDC config values and describe
when it is needed: providers such as Zitadel issue ID tokens whose `aud`
claim lists more than the client ID, which Kellnr rejects by default.

Cover the two points a reader trips over: the configured client ID must
still appear in `aud`, and the environment variable takes a
comma-separated list.
@secana
secana merged commit 0c0c30a into main Sep 1, 2026
1 check passed
@secana
secana deleted the docs/oauth2-additional-audiences branch September 1, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant