Skip to content

providers/oauth2: token exchange delegation - #24356

Merged
BeryJu merged 89 commits into
mainfrom
providers/oauth2/token-exchange-delegation
Aug 4, 2026
Merged

BeryJu merged 89 commits into
mainfrom
providers/oauth2/token-exchange-delegation

Conversation

@BeryJu

@BeryJu BeryJu commented Jul 24, 2026

Copy link
Copy Markdown
Member

No description provided.

BeryJu added 30 commits July 16, 2026 12:32
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>

# Conflicts:
#	authentik/policies/engine.py
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
@BeryJu
BeryJu force-pushed the providers/oauth2/token-exchange-delegation branch from 4516544 to f86cb9d Compare July 31, 2026 17:41
Signed-off-by: Jens Langhammer <[email protected]>
@codecov

codecov Bot commented Jul 31, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 91.97531% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.24%. Comparing base (ea2a257) to head (2f2aff1).
⚠️ Report is 20 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
authentik/providers/oauth2/id_token.py 45.00% 11 Missing ⚠️
authentik/providers/oauth2/views/token.py 95.55% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #24356      +/-   ##
==========================================
+ Coverage   91.22%   91.24%   +0.02%     
==========================================
  Files        1128     1129       +1     
  Lines       70739    70881     +142     
  Branches     3874     3874              
==========================================
+ Hits        64533    64678     +145     
+ Misses       6171     6168       -3     
  Partials       35       35              
Flag Coverage Δ
conformance 35.09% <8.64%> (-0.05%) ⬇️
e2e 39.87% <8.64%> (-0.05%) ⬇️
integration 31.64% <5.55%> (-0.05%) ⬇️
rust 38.90% <ø> (ø)
unit 92.92% <91.97%> (+0.02%) ⬆️
unit-migrate 92.94% <91.97%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@BeryJu
BeryJu force-pushed the providers/oauth2/token-exchange-delegation branch from f86cb9d to 45dbcd6 Compare July 31, 2026 17:45
Signed-off-by: Jens Langhammer <[email protected]>
@BeryJu
BeryJu requested a review from a team as a code owner August 3, 2026 12:14
Base automatically changed from persona to main August 3, 2026 19:46
Signed-off-by: Jens Langhammer <[email protected]>

# Conflicts:
#	authentik/core/models.py
#	authentik/policies/engine.py
@BeryJu
BeryJu force-pushed the providers/oauth2/token-exchange-delegation branch from 45dbcd6 to a733b38 Compare August 3, 2026 19:49
@github-actions

github-actions Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-2f2aff19d72ffdec87680eca0c3227077843633d
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
    image:
        repository: ghcr.io/goauthentik/dev-server
        tag: gh-2f2aff19d72ffdec87680eca0c3227077843633d

Afterwards, run the upgrade commands from the latest release notes.

BeryJu added 3 commits August 3, 2026 22:16
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
@BeryJu BeryJu changed the title enterprise/providers/oauth2: token exchange delegation providers/oauth2: token exchange delegation Aug 4, 2026
Signed-off-by: Jens Langhammer <[email protected]>
@netlify

netlify Bot commented Aug 4, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 2f2aff1
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6a71de088e964c0008fafb5f
😎 Deploy Preview https://deploy-preview-24356--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@BeryJu
BeryJu removed the request for review from a team August 4, 2026 12:54
@BeryJu
BeryJu merged commit 2de13ff into main Aug 4, 2026
146 checks passed
@BeryJu
BeryJu deleted the providers/oauth2/token-exchange-delegation branch August 4, 2026 13:38
@BeryJu BeryJu added the backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8 label Aug 4, 2026
@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

🍒 Cherry-pick to version-2026.8 created: #24745

BeryJu added a commit that referenced this pull request Aug 4, 2026
…rsion-2026.8) (#24745)

providers/oauth2: token exchange delegation (#24356)

* I think I'm happy with this structure



* fixup



* add api



* fix missing engine mode



* add ui



* pull in the requests machinery



* fixup and gen



* gen



* re-wire things up



* re-add more web stuff



* fix unrelated test issue



* fix mixin



* gen



* plumb in flows



* update ui



* initial web



* fix a couple things



* fix api tests & schema



* better pick request flow



* fix perms



* change method



* fix perms



* fix web lint



* explicit perms



* fix migrations



* concrete m2m



* fix perms



* format



* add some default config



* fix permission check -> requesting user checks against rule bindings' policies



* fix unrelated



* fix api client



* fix styling



* fix more



* add banner



* attributes mixin prep for object attrs



* fix tests



* update tests



* fix typo



* fix unrelated test failure



* ensure no self-approval



* configurable expiry



* add meta info to requestable target



* add more events



* only unique apps



* initial app card impl



* add entitlement modal



* respect filters



* re-migrate



* improve ux



* fix child bindings?



* better ux for rule bindings



* fix type check



* initial dcr



* re-migrate



* handle error



* format



* init



* rename



* rename



* self-service



* wip



* move to user view



* always expire self



* t



* format



* actor



* cleanup



* effective user early



* extract agents



* init



* remove enterprise



* rework to accept inbuilt token



* smh ai helper functions



* fix function name



---------

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Jens L. <[email protected]>
kensternberg-authentik added a commit that referenced this pull request Aug 6, 2026
* main:
  docs: fix broken link in 2026.11 release notes draft (#24746)
  providers/oauth2: token exchange delegation (#24356)
  core, web: update translations (#24717)
  enterprise/requests: only show requests tab when usable (#24705)
  website/integrations: Update absorb-lms (#24731)
  website/integrations: Update kimai for slo, urls, and issuer (#24730)
  core: bump mypy from 2.1.0 to 2.3.0 (#24724)
  website/docs: Add feedback from previous agent pr (#24713)
  core: bump aiohttp from 3.14.1 to 3.14.3 (#24712)
  ci: bump taiki-e/install-action from 2.85.5 to 2.85.6 in /.github/actions/setup (#24729)
  core: bump github.com/go-openapi/runtime from 0.32.6 to 0.33.0 (#24719)
  core: bump gorm.io/driver/postgres from 1.6.1 to 1.6.2 (#24720)
  website: bump openapi-to-postmanv2 from 6.3.1 to 6.3.2 in /website (#24721)
  core: bump pnpm/pnpm from 11.18.0 to 11.19.0 in /lifecycle/container (#24722)
  core: bump goauthentik/fips-python from `6b3c0fc` to `ca59498` in /lifecycle/container (#24723)
  ci: bump docker/login-action from 3 to 4 (#24725)
  core: bump astral-sh/uv from 0.12.0 to 0.12.1 in /lifecycle/container (#24726)
  core: bump pnpm/pnpm from 11.18.0 to 11.19.0 in /website (#24727)
  core: bump clap from 4.6.4 to 4.6.5 (#24728)
  website/docs: document API scope and domain join required by the authentik Agent (#24599)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants