Skip to content

sources/oauth: add expression field for additional url parameters#22486

Open
Benricheson101 wants to merge 3 commits into
goauthentik:mainfrom
Benricheson101:feat/dynamic-oauth-url-params
Open

sources/oauth: add expression field for additional url parameters#22486
Benricheson101 wants to merge 3 commits into
goauthentik:mainfrom
Benricheson101:feat/dynamic-oauth-url-params

Conversation

@Benricheson101
Copy link
Copy Markdown

Details

Adds a Python expression block to the OAuth Source form for configuring additional authorization URL parameters (e.g., prompt=none, hd=example.com).

image

Closes #13952

Checklist

  • Local tests pass (ak test authentik/)
  • The code has been formatted (make lint-fix)

If an API change has been made

  • The API schema and clients have been updated (make gen)

If changes to the frontend have been made

  • The code has been formatted (make web)

If applicable

  • The documentation has been updated
  • The documentation has been formatted (make docs)

@Benricheson101 Benricheson101 requested review from a team as code owners May 19, 2026 21:21
@codecov
Copy link
Copy Markdown

codecov Bot commented May 19, 2026

Codecov Report

❌ Patch coverage is 22.22222% with 49 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.29%. Comparing base (fa3c7b8) to head (9bc09e1).
⚠️ Report is 14 commits behind head on main.

Files with missing lines Patch % Lines
authentik/sources/oauth/tests/test_views.py 11.11% 32 Missing ⚠️
authentik/sources/oauth/views/redirect.py 34.61% 17 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (fa3c7b8) and HEAD (9bc09e1). Click for more details.

HEAD has 4 uploads less than BASE
Flag BASE (fa3c7b8) HEAD (9bc09e1)
unit 10 8
unit-migrate 10 8
Additional details and impacted files
@@             Coverage Diff             @@
##             main   #22486       +/-   ##
===========================================
- Coverage   93.28%   81.29%   -12.00%     
===========================================
  Files        1032     1032               
  Lines       60057    60121       +64     
  Branches      400      400               
===========================================
- Hits        56027    48878     -7149     
- Misses       4030    11243     +7213     
Flag Coverage Δ
conformance 36.58% <7.93%> (-0.03%) ⬇️
e2e 41.84% <15.87%> (-0.02%) ⬇️
integration 32.53% <7.93%> (-0.52%) ⬇️
rust 0.00% <ø> (ø)
unit 79.12% <22.22%> (-13.08%) ⬇️
unit-migrate 79.19% <22.22%> (-13.07%) ⬇️

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.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 20, 2026

Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 4bc7b0f
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6a0df8005175360008e7280e
😎 Deploy Preview https://deploy-preview-22486--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
Copy link
Copy Markdown

netlify Bot commented May 20, 2026

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 4bc7b0f
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6a0df800988098000805e9ed
😎 Deploy Preview https://deploy-preview-22486--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.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 20, 2026

Deploy Preview for authentik-docs ready!

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

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.

Allow Setting Additional Parameters on OAuth URLs Dynamically

1 participant