Skip to content

providers/oauth2: token exchange delegation (cherry-pick #24356 to version-2026.8) - #24745

Merged
BeryJu merged 1 commit into
version-2026.8from
cherry-pick/24356-to-version-2026.8
Aug 4, 2026
Merged

BeryJu merged 1 commit into
version-2026.8from
cherry-pick/24356-to-version-2026.8

Conversation

@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

Cherry-pick of #24356 to version-2026.8 branch.

Original PR: #24356
Original Author: @BeryJu
Cherry-picked commit: 2de13ff

* I think I'm happy with this structure

Signed-off-by: Jens Langhammer <[email protected]>

* fixup

Signed-off-by: Jens Langhammer <[email protected]>

* add api

Signed-off-by: Jens Langhammer <[email protected]>

* fix missing engine mode

Signed-off-by: Jens Langhammer <[email protected]>

* add ui

Signed-off-by: Jens Langhammer <[email protected]>

* pull in the requests machinery

Signed-off-by: Jens Langhammer <[email protected]>

* fixup and gen

Signed-off-by: Jens Langhammer <[email protected]>

* gen

Signed-off-by: Jens Langhammer <[email protected]>

* re-wire things up

Signed-off-by: Jens Langhammer <[email protected]>

* re-add more web stuff

Signed-off-by: Jens Langhammer <[email protected]>

* fix unrelated test issue

Signed-off-by: Jens Langhammer <[email protected]>

* fix mixin

Signed-off-by: Jens Langhammer <[email protected]>

* gen

Signed-off-by: Jens Langhammer <[email protected]>

* plumb in flows

Signed-off-by: Jens Langhammer <[email protected]>

* update ui

Signed-off-by: Jens Langhammer <[email protected]>

* initial web

Signed-off-by: Jens Langhammer <[email protected]>

* fix a couple things

Signed-off-by: Jens Langhammer <[email protected]>

* fix api tests & schema

Signed-off-by: Jens Langhammer <[email protected]>

* better pick request flow

Signed-off-by: Jens Langhammer <[email protected]>

* fix perms

Signed-off-by: Jens Langhammer <[email protected]>

* change method

Signed-off-by: Jens Langhammer <[email protected]>

* fix perms

Signed-off-by: Jens Langhammer <[email protected]>

* fix web lint

Signed-off-by: Jens Langhammer <[email protected]>

* explicit perms

Signed-off-by: Jens Langhammer <[email protected]>

* fix migrations

Signed-off-by: Jens Langhammer <[email protected]>

* concrete m2m

Signed-off-by: Jens Langhammer <[email protected]>

* fix perms

Signed-off-by: Jens Langhammer <[email protected]>

* format

Signed-off-by: Jens Langhammer <[email protected]>

* add some default config

Signed-off-by: Jens Langhammer <[email protected]>

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

Signed-off-by: Jens Langhammer <[email protected]>

* fix unrelated

Signed-off-by: Jens Langhammer <[email protected]>

* fix api client

Signed-off-by: Jens Langhammer <[email protected]>

* fix styling

Signed-off-by: Jens Langhammer <[email protected]>

* fix more

Signed-off-by: Jens Langhammer <[email protected]>

* add banner

Signed-off-by: Jens Langhammer <[email protected]>

* attributes mixin prep for object attrs

Signed-off-by: Jens Langhammer <[email protected]>

* fix tests

Signed-off-by: Jens Langhammer <[email protected]>

* update tests

Signed-off-by: Jens Langhammer <[email protected]>

* fix typo

Signed-off-by: Jens Langhammer <[email protected]>

* fix unrelated test failure

Signed-off-by: Jens Langhammer <[email protected]>

* ensure no self-approval

Signed-off-by: Jens Langhammer <[email protected]>

* configurable expiry

Signed-off-by: Jens Langhammer <[email protected]>

* add meta info to requestable target

Signed-off-by: Jens Langhammer <[email protected]>

* add more events

Signed-off-by: Jens Langhammer <[email protected]>

* only unique apps

Signed-off-by: Jens Langhammer <[email protected]>

* initial app card impl

Signed-off-by: Jens Langhammer <[email protected]>

* add entitlement modal

Signed-off-by: Jens Langhammer <[email protected]>

* respect filters

Signed-off-by: Jens Langhammer <[email protected]>

* re-migrate

Signed-off-by: Jens Langhammer <[email protected]>

* improve ux

Signed-off-by: Jens Langhammer <[email protected]>

* fix child bindings?

Signed-off-by: Jens Langhammer <[email protected]>

* better ux for rule bindings

Signed-off-by: Jens Langhammer <[email protected]>

* fix type check

Signed-off-by: Jens Langhammer <[email protected]>

* initial dcr

Signed-off-by: Jens Langhammer <[email protected]>

* re-migrate

Signed-off-by: Jens Langhammer <[email protected]>

* handle error

Signed-off-by: Jens Langhammer <[email protected]>

* format

Signed-off-by: Jens Langhammer <[email protected]>

* init

Signed-off-by: Jens Langhammer <[email protected]>

* rename

Signed-off-by: Jens Langhammer <[email protected]>

* rename

Signed-off-by: Jens Langhammer <[email protected]>

* self-service

Signed-off-by: Jens Langhammer <[email protected]>

* wip

Signed-off-by: Jens Langhammer <[email protected]>

* move to user view

Signed-off-by: Jens Langhammer <[email protected]>

* always expire self

Signed-off-by: Jens Langhammer <[email protected]>

* t

Signed-off-by: Jens Langhammer <[email protected]>

* format

Signed-off-by: Jens Langhammer <[email protected]>

* actor

Signed-off-by: Jens Langhammer <[email protected]>

* cleanup

Signed-off-by: Jens Langhammer <[email protected]>

* effective user early

Signed-off-by: Jens Langhammer <[email protected]>

* extract agents

Signed-off-by: Jens Langhammer <[email protected]>

* init

Signed-off-by: Jens Langhammer <[email protected]>

* remove enterprise

Signed-off-by: Jens Langhammer <[email protected]>

* rework to accept inbuilt token

Signed-off-by: Jens Langhammer <[email protected]>

* smh ai helper functions

Signed-off-by: Jens Langhammer <[email protected]>

* fix function name

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
@netlify

netlify Bot commented Aug 4, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 59a7cf4
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6a71eb6364ce65000866e4f9
😎 Deploy Preview https://deploy-preview-24745--authentik-integrations.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.

@netlify

netlify Bot commented Aug 4, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 59a7cf4
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a71eb63648a56000806e446
😎 Deploy Preview https://deploy-preview-24745--authentik-docs.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.

@codecov

codecov Bot commented Aug 4, 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.25%. Comparing base (b383287) to head (59a7cf4).
✅ 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                 @@
##           version-2026.8   #24745      +/-   ##
==================================================
+ Coverage           91.09%   91.25%   +0.15%     
==================================================
  Files                1129     1129              
  Lines               70748    70881     +133     
  Branches             3874     3874              
==================================================
+ Hits                64451    64680     +229     
+ Misses               6262     6166      -96     
  Partials               35       35              
Flag Coverage Δ
conformance 35.09% <8.64%> (-0.06%) ⬇️
e2e 39.86% <8.64%> (+0.44%) ⬆️
integration 31.64% <5.55%> (-0.06%) ⬇️
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 merged commit 9462fa2 into version-2026.8 Aug 4, 2026
224 of 227 checks passed
@BeryJu
BeryJu deleted the cherry-pick/24356-to-version-2026.8 branch August 4, 2026 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant