sources/oauth: Fix InvalidAudienceError in id_token fallback#20096
Merged
BeryJu merged 3 commits intogoauthentik:mainfrom Feb 9, 2026
Merged
sources/oauth: Fix InvalidAudienceError in id_token fallback#20096BeryJu merged 3 commits intogoauthentik:mainfrom
BeryJu merged 3 commits intogoauthentik:mainfrom
Conversation
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #20096 +/- ##
==========================================
- Coverage 93.23% 93.19% -0.05%
==========================================
Files 968 968
Lines 53589 53599 +10
==========================================
- Hits 49965 49952 -13
- Misses 3624 3647 +23
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
BeryJu
reviewed
Feb 7, 2026
BeryJu
approved these changes
Feb 9, 2026
Contributor
Author
|
@BeryJu thanks for taking a look! Can this also be back-ported to 2025.12? |
Contributor
|
|
kensternberg-authentik
added a commit
that referenced
this pull request
Feb 9, 2026
* main: (108 commits) tasks: add queued tasks metrics (#20118) website/docs: endpoint devices: add fleet connector doc (#20086) tasks/middlewares: call monitoring_set upon metrics request (#20117) core: bump github.com/pires/go-proxyproto from 0.9.2 to 0.10.0 (#20102) core: bump golang.org/x/oauth2 from 0.34.0 to 0.35.0 (#20103) core: bump gunicorn from 25.0.1 to 25.0.3 (#20104) ci: bump int128/docker-manifest-create-action from 2.13.0 to 2.14.0 (#20105) ci: bump astral-sh/setup-uv from 7.2.1 to 7.3.0 in /.github/actions/setup (#20106) web: bump the swc group across 2 directories with 1 update (#20108) web: bump playwright from 1.58.1 to 1.58.2 in /web (#20109) web: bump @playwright/test from 1.58.1 to 1.58.2 in /web (#20110) web: bump @types/node from 25.2.1 to 25.2.2 in /web (#20111) web: bump knip from 5.83.0 to 5.83.1 in /web (#20112) web: bump type-fest from 5.4.3 to 5.4.4 in /web (#20113) sources/oauth: Fix InvalidAudienceError in id_token fallback (#20096) website/docs: generate CVE sidebar (#20098) providers/saml: move sp acs binding down in form (#20039) sources/saml: truncate transient username longer than 150 chars (#19930) web: Fix locale selector in compatibility mode. (#19946) web/i18n: Fix Japanese and Korean font overrides. (#19994) ...
kensternberg-authentik
added a commit
that referenced
this pull request
Feb 9, 2026
* main: (34 commits) tasks: add queued tasks metrics (#20118) website/docs: endpoint devices: add fleet connector doc (#20086) tasks/middlewares: call monitoring_set upon metrics request (#20117) core: bump github.com/pires/go-proxyproto from 0.9.2 to 0.10.0 (#20102) core: bump golang.org/x/oauth2 from 0.34.0 to 0.35.0 (#20103) core: bump gunicorn from 25.0.1 to 25.0.3 (#20104) ci: bump int128/docker-manifest-create-action from 2.13.0 to 2.14.0 (#20105) ci: bump astral-sh/setup-uv from 7.2.1 to 7.3.0 in /.github/actions/setup (#20106) web: bump the swc group across 2 directories with 1 update (#20108) web: bump playwright from 1.58.1 to 1.58.2 in /web (#20109) web: bump @playwright/test from 1.58.1 to 1.58.2 in /web (#20110) web: bump @types/node from 25.2.1 to 25.2.2 in /web (#20111) web: bump knip from 5.83.0 to 5.83.1 in /web (#20112) web: bump type-fest from 5.4.3 to 5.4.4 in /web (#20113) sources/oauth: Fix InvalidAudienceError in id_token fallback (#20096) website/docs: generate CVE sidebar (#20098) providers/saml: move sp acs binding down in form (#20039) sources/saml: truncate transient username longer than 150 chars (#19930) web: Fix locale selector in compatibility mode. (#19946) web/i18n: Fix Japanese and Korean font overrides. (#19994) ...
kensternberg-authentik
added a commit
that referenced
this pull request
Feb 9, 2026
…/flow/one-true-api * web/flow/tablize-token-component-relationship: (84 commits) tasks: add queued tasks metrics (#20118) website/docs: endpoint devices: add fleet connector doc (#20086) tasks/middlewares: call monitoring_set upon metrics request (#20117) core: bump github.com/pires/go-proxyproto from 0.9.2 to 0.10.0 (#20102) core: bump golang.org/x/oauth2 from 0.34.0 to 0.35.0 (#20103) core: bump gunicorn from 25.0.1 to 25.0.3 (#20104) ci: bump int128/docker-manifest-create-action from 2.13.0 to 2.14.0 (#20105) ci: bump astral-sh/setup-uv from 7.2.1 to 7.3.0 in /.github/actions/setup (#20106) web: bump the swc group across 2 directories with 1 update (#20108) web: bump playwright from 1.58.1 to 1.58.2 in /web (#20109) web: bump @playwright/test from 1.58.1 to 1.58.2 in /web (#20110) web: bump @types/node from 25.2.1 to 25.2.2 in /web (#20111) web: bump knip from 5.83.0 to 5.83.1 in /web (#20112) web: bump type-fest from 5.4.3 to 5.4.4 in /web (#20113) sources/oauth: Fix InvalidAudienceError in id_token fallback (#20096) website/docs: generate CVE sidebar (#20098) providers/saml: move sp acs binding down in form (#20039) sources/saml: truncate transient username longer than 150 chars (#19930) web: Fix locale selector in compatibility mode. (#19946) web/i18n: Fix Japanese and Korean font overrides. (#19994) ...
kensternberg-authentik
added a commit
that referenced
this pull request
Feb 9, 2026
…ctor * web/flow/one-true-api: (84 commits) tasks: add queued tasks metrics (#20118) website/docs: endpoint devices: add fleet connector doc (#20086) tasks/middlewares: call monitoring_set upon metrics request (#20117) core: bump github.com/pires/go-proxyproto from 0.9.2 to 0.10.0 (#20102) core: bump golang.org/x/oauth2 from 0.34.0 to 0.35.0 (#20103) core: bump gunicorn from 25.0.1 to 25.0.3 (#20104) ci: bump int128/docker-manifest-create-action from 2.13.0 to 2.14.0 (#20105) ci: bump astral-sh/setup-uv from 7.2.1 to 7.3.0 in /.github/actions/setup (#20106) web: bump the swc group across 2 directories with 1 update (#20108) web: bump playwright from 1.58.1 to 1.58.2 in /web (#20109) web: bump @playwright/test from 1.58.1 to 1.58.2 in /web (#20110) web: bump @types/node from 25.2.1 to 25.2.2 in /web (#20111) web: bump knip from 5.83.0 to 5.83.1 in /web (#20112) web: bump type-fest from 5.4.3 to 5.4.4 in /web (#20113) sources/oauth: Fix InvalidAudienceError in id_token fallback (#20096) website/docs: generate CVE sidebar (#20098) providers/saml: move sp acs binding down in form (#20039) sources/saml: truncate transient username longer than 150 chars (#19930) web: Fix locale selector in compatibility mode. (#19946) web/i18n: Fix Japanese and Korean font overrides. (#19994) ...
kensternberg-authentik
added a commit
that referenced
this pull request
Feb 9, 2026
* main: (293 commits) tasks: add queued tasks metrics (#20118) website/docs: endpoint devices: add fleet connector doc (#20086) tasks/middlewares: call monitoring_set upon metrics request (#20117) core: bump github.com/pires/go-proxyproto from 0.9.2 to 0.10.0 (#20102) core: bump golang.org/x/oauth2 from 0.34.0 to 0.35.0 (#20103) core: bump gunicorn from 25.0.1 to 25.0.3 (#20104) ci: bump int128/docker-manifest-create-action from 2.13.0 to 2.14.0 (#20105) ci: bump astral-sh/setup-uv from 7.2.1 to 7.3.0 in /.github/actions/setup (#20106) web: bump the swc group across 2 directories with 1 update (#20108) web: bump playwright from 1.58.1 to 1.58.2 in /web (#20109) web: bump @playwright/test from 1.58.1 to 1.58.2 in /web (#20110) web: bump @types/node from 25.2.1 to 25.2.2 in /web (#20111) web: bump knip from 5.83.0 to 5.83.1 in /web (#20112) web: bump type-fest from 5.4.3 to 5.4.4 in /web (#20113) sources/oauth: Fix InvalidAudienceError in id_token fallback (#20096) website/docs: generate CVE sidebar (#20098) providers/saml: move sp acs binding down in form (#20039) sources/saml: truncate transient username longer than 150 chars (#19930) web: Fix locale selector in compatibility mode. (#19946) web/i18n: Fix Japanese and Korean font overrides. (#19994) ...
kensternberg-authentik
added a commit
that referenced
this pull request
Feb 9, 2026
* main: (83 commits) web/admin: source forms not rendering (#19887) tasks: add queued tasks metrics (#20118) website/docs: endpoint devices: add fleet connector doc (#20086) tasks/middlewares: call monitoring_set upon metrics request (#20117) core: bump github.com/pires/go-proxyproto from 0.9.2 to 0.10.0 (#20102) core: bump golang.org/x/oauth2 from 0.34.0 to 0.35.0 (#20103) core: bump gunicorn from 25.0.1 to 25.0.3 (#20104) ci: bump int128/docker-manifest-create-action from 2.13.0 to 2.14.0 (#20105) ci: bump astral-sh/setup-uv from 7.2.1 to 7.3.0 in /.github/actions/setup (#20106) web: bump the swc group across 2 directories with 1 update (#20108) web: bump playwright from 1.58.1 to 1.58.2 in /web (#20109) web: bump @playwright/test from 1.58.1 to 1.58.2 in /web (#20110) web: bump @types/node from 25.2.1 to 25.2.2 in /web (#20111) web: bump knip from 5.83.0 to 5.83.1 in /web (#20112) web: bump type-fest from 5.4.3 to 5.4.4 in /web (#20113) sources/oauth: Fix InvalidAudienceError in id_token fallback (#20096) website/docs: generate CVE sidebar (#20098) providers/saml: move sp acs binding down in form (#20039) sources/saml: truncate transient username longer than 150 chars (#19930) web: Fix locale selector in compatibility mode. (#19946) ...
kensternberg-authentik
added a commit
that referenced
this pull request
Feb 12, 2026
…logs-into-the-light * web/flow/extract-flow-inspector: (85 commits) Prettier is still having opinions. tasks: add queued tasks metrics (#20118) website/docs: endpoint devices: add fleet connector doc (#20086) tasks/middlewares: call monitoring_set upon metrics request (#20117) core: bump github.com/pires/go-proxyproto from 0.9.2 to 0.10.0 (#20102) core: bump golang.org/x/oauth2 from 0.34.0 to 0.35.0 (#20103) core: bump gunicorn from 25.0.1 to 25.0.3 (#20104) ci: bump int128/docker-manifest-create-action from 2.13.0 to 2.14.0 (#20105) ci: bump astral-sh/setup-uv from 7.2.1 to 7.3.0 in /.github/actions/setup (#20106) web: bump the swc group across 2 directories with 1 update (#20108) web: bump playwright from 1.58.1 to 1.58.2 in /web (#20109) web: bump @playwright/test from 1.58.1 to 1.58.2 in /web (#20110) web: bump @types/node from 25.2.1 to 25.2.2 in /web (#20111) web: bump knip from 5.83.0 to 5.83.1 in /web (#20112) web: bump type-fest from 5.4.3 to 5.4.4 in /web (#20113) sources/oauth: Fix InvalidAudienceError in id_token fallback (#20096) website/docs: generate CVE sidebar (#20098) providers/saml: move sp acs binding down in form (#20039) sources/saml: truncate transient username longer than 150 chars (#19930) web: Fix locale selector in compatibility mode. (#19946) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Details
When using an OIDC source without a profile URL (relying on id_token claims fallback), authentication fails with InvalidAudienceError if the id_token contains an aud claim. The decode() call in OpenIDConnectClient.get_profile_info() doesn't pass an expected audience parameter. PyJWT validates the aud claim by default when present, causing the decode to fail.
Checklist
ak test authentik/)make lint-fix)If an API change has been made
make gen-build)If changes to the frontend have been made
make web)If applicable
make docs)