Skip to content

providers/saml: support authnrequest forceauthn flag#22489

Open
PeshekDotDev wants to merge 1 commit into
mainfrom
force-authn-saml-provider
Open

providers/saml: support authnrequest forceauthn flag#22489
PeshekDotDev wants to merge 1 commit into
mainfrom
force-authn-saml-provider

Conversation

@PeshekDotDev
Copy link
Copy Markdown
Contributor

Details

Add support for the forceauthn flag in the saml authnrequest. This acts similar to oidc's prompt=login

Closes #8757


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)

@PeshekDotDev PeshekDotDev self-assigned this May 20, 2026
@PeshekDotDev PeshekDotDev requested a review from a team as a code owner May 20, 2026 06:59
@netlify
Copy link
Copy Markdown

netlify Bot commented May 20, 2026

Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit e177b1e
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a0d5bcd3dee900009a8e0a9
😎 Deploy Preview https://deploy-preview-22489--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 20, 2026

Codecov Report

❌ Patch coverage is 66.66667% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.23%. Comparing base (f992754) to head (e177b1e).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
authentik/providers/saml/views/sso.py 40.00% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #22489      +/-   ##
==========================================
- Coverage   93.28%   93.23%   -0.06%     
==========================================
  Files        1032     1032              
  Lines       60059    60084      +25     
  Branches      400      400              
==========================================
- Hits        56029    56020       -9     
- Misses       4030     4064      +34     
Flag Coverage Δ
conformance 36.60% <18.51%> (-0.01%) ⬇️
e2e 41.84% <33.33%> (-0.03%) ⬇️
integration 32.55% <18.51%> (-0.50%) ⬇️
rust 0.00% <ø> (ø)
unit 92.19% <59.25%> (-0.02%) ⬇️
unit-migrate 92.24% <59.25%> (-0.02%) ⬇️

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

SAML provider does not force user to authenticate when ForceAuthn flag is set to true

1 participant