Skip to content

enterprise/providers/scim: add support for interactive OAuth2 - #22072

Merged
BeryJu merged 14 commits into
mainfrom
enterprise/providers/scim/support-interactive-oauth2
May 13, 2026
Merged

BeryJu merged 14 commits into
mainfrom
enterprise/providers/scim/support-interactive-oauth2

Conversation

@BeryJu

@BeryJu BeryJu commented May 5, 2026 •

Copy link
Copy Markdown
Member

We added initial OAuth support in #16903 but that only supports client_credentials based of a client_id + client_secret.

This adds the ability to use interactive OAuth where a single user needs to interactive authorize SCIM.

New URLS:

  • https://authentik.company/application/scim/<slug>/oauth2/start/ Starts this SCIM-OAuth flow
  • https://authentik.company/application/scim/<slug>/oauth2/callback/ new callback URL for SCIM OAuth flow

TODOs:

  • Link start URL in UI
  • Probably have a different option in the provider for {token, oauth_client_credentials, oauth_interactive}
  • Logic to refresh the token we get from interactive
  • More testing (tested with Apple business/school manager)
  • Docs: website/docs: additional scim provider docs #22135

@BeryJu
BeryJu requested a review from a team as a code owner May 5, 2026 19:44
@netlify

netlify Bot commented May 5, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 067bb44
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/69fcc6e444c16f00081b3c52
😎 Deploy Preview https://deploy-preview-22072--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 May 5, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.32258% with 21 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.27%. Comparing base (b420e4f) to head (d45f876).
⚠️ Report is 132 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
authentik/enterprise/providers/scim/api.py 72.41% 8 Missing ⚠️
authentik/sources/oauth/views/callback.py 46.15% 7 Missing ⚠️
authentik/enterprise/providers/scim/views.py 88.63% 5 Missing ⚠️
authentik/enterprise/providers/scim/auth_oauth2.py 94.73% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #22072      +/-   ##
==========================================
+ Coverage   93.24%   93.27%   +0.03%     
==========================================
  Files        1026     1032       +6     
  Lines       59410    60051     +641     
  Branches      400      400              
==========================================
+ Hits        55397    56015     +618     
- Misses       4013     4036      +23     
Flag Coverage Δ
conformance 36.61% <20.27%> (-0.25%) ⬇️
e2e 41.85% <21.65%> (-0.21%) ⬇️
integration 33.05% <20.27%> (-0.21%) ⬇️
rust 0.00% <ø> (ø)
unit 92.20% <90.32%> (+0.05%) ⬆️
unit-migrate 92.23% <90.32%> (+0.03%) ⬆️

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

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

@github-actions

github-actions Bot commented May 5, 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-d45f876861796048e8201deafd42121cd3c71185
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-d45f876861796048e8201deafd42121cd3c71185

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

@BeryJu
BeryJu requested a review from a team as a code owner May 5, 2026 22:14
@netlify

netlify Bot commented May 5, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 20556e3
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6a048e4054771e000894de04
😎 Deploy Preview https://deploy-preview-22072--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 added 2 commits May 6, 2026 02:51
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
@BeryJu
BeryJu force-pushed the enterprise/providers/scim/support-interactive-oauth2 branch from e3d9786 to ee51fb4 Compare May 6, 2026 00:51
Signed-off-by: Jens Langhammer <[email protected]>
BeryJu added 2 commits May 6, 2026 13:50
Signed-off-by: Jens Langhammer <[email protected]>
@BeryJu
BeryJu force-pushed the enterprise/providers/scim/support-interactive-oauth2 branch from d17c11b to 42b4479 Compare May 6, 2026 12:15
Signed-off-by: Jens Langhammer <[email protected]>
@netlify

netlify Bot commented May 6, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 067bb44
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/69fcc6e4d7f900000818e9a8
😎 Deploy Preview https://deploy-preview-22072--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.

BeryJu added 4 commits May 6, 2026 14:49
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
@BeryJu BeryJu added area:frontend Features or issues related to the browser, TypeScript, Node.js, etc area:backend backport/version-2025.12 Add this label to PRs to backport changes to version-2025.12 backport/version-2026.5 Add this label to PRs to backport changes to version-2026.5 labels May 8, 2026
Signed-off-by: Jens Langhammer <[email protected]>
@BeryJu BeryJu removed the backport/version-2025.12 Add this label to PRs to backport changes to version-2025.12 label May 13, 2026
BeryJu added 2 commits May 13, 2026 16:44
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
@BeryJu
BeryJu merged commit a712e5b into main May 13, 2026
177 of 183 checks passed
@BeryJu
BeryJu deleted the enterprise/providers/scim/support-interactive-oauth2 branch May 13, 2026 16:27
@authentik-automation

Copy link
Copy Markdown
Contributor

🍒 Cherry-pick to version-2026.5 created: #22337

BeryJu added a commit that referenced this pull request May 13, 2026
…-pick #22072 to version-2026.5) (#22337)

enterprise/providers/scim: add support for interactive OAuth2 (#22072)

* enterprise/providers/scim: add support for interactive OAuth2



* prep different oauth mode



* implement it



* add data to API



* update ui



* fixes



* cleanup



* start adding tests



* add more tests



* remove not-needed migration



* fixup



* fix last_updated not being updated



---------

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Jens L. <[email protected]>
kensternberg-authentik added a commit that referenced this pull request May 18, 2026
* main:
  web/bug: fix regex recursion error in compatibility mode (#22338)
  enterprise/providers/scim: add support for interactive OAuth2 (#22072)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:backend area:frontend Features or issues related to the browser, TypeScript, Node.js, etc backport/version-2026.5 Add this label to PRs to backport changes to version-2026.5

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant