Skip to content

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

Open
BeryJu wants to merge 9 commits intomainfrom
enterprise/providers/scim/support-interactive-oauth2
Open

enterprise/providers/scim: add support for interactive OAuth2#22072
BeryJu wants to merge 9 commits intomainfrom
enterprise/providers/scim/support-interactive-oauth2

Conversation

@BeryJu
Copy link
Copy Markdown
Member

@BeryJu BeryJu commented May 5, 2026

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

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
@BeryJu BeryJu requested a review from a team as a code owner May 5, 2026 19:44
@netlify
Copy link
Copy Markdown

netlify Bot commented May 5, 2026

Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 1dd6c39
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/69fa48b3e8f97c0008dabc69
😎 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
Copy link
Copy Markdown

codecov Bot commented May 5, 2026

Codecov Report

❌ Patch coverage is 73.07692% with 35 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.19%. Comparing base (77fae18) to head (8374554).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
authentik/enterprise/providers/scim/views.py 51.28% 19 Missing ⚠️
authentik/enterprise/providers/scim/api.py 72.41% 8 Missing ⚠️
authentik/sources/oauth/views/callback.py 46.15% 7 Missing ⚠️
authentik/enterprise/providers/scim/auth_oauth2.py 94.73% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #22072      +/-   ##
==========================================
- Coverage   93.22%   93.19%   -0.03%     
==========================================
  Files        1024     1026       +2     
  Lines       59343    59450     +107     
  Branches      400      400              
==========================================
+ Hits        55323    55407      +84     
- Misses       4020     4043      +23     
Flag Coverage Δ
conformance 36.88% <33.07%> (-0.01%) ⬇️
e2e 42.06% <35.38%> (+<0.01%) ⬆️
integration 33.28% <33.07%> (+<0.01%) ⬆️
rust 0.00% <ø> (ø)
unit 92.10% <70.76%> (-0.04%) ⬇️
unit-migrate 92.14% <70.76%> (-0.05%) ⬇️

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
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 5, 2026

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-8374554098ceeee222059245e778a95b055e0a06
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-8374554098ceeee222059245e778a95b055e0a06

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
Copy link
Copy Markdown

netlify Bot commented May 5, 2026

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 42b4479
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/69fb30d750511c0008a0c82e
😎 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 <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
@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 <jens@goauthentik.io>
Comment thread authentik/providers/scim/api/providers.py Fixed
BeryJu added 2 commits May 6, 2026 13:50
…e-oauth2

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
@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 <jens@goauthentik.io>
@netlify
Copy link
Copy Markdown

netlify Bot commented May 6, 2026

Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 7132ebe
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/69fb3769767bc800088f4c67
😎 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 2 commits May 6, 2026 14:49
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
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