Skip to content

providers/saml: support authnrequest forceauthn flag - #22489

Merged
PeshekDotDev merged 4 commits into
mainfrom
force-authn-saml-provider
Jul 14, 2026
Merged

PeshekDotDev merged 4 commits 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

netlify Bot commented May 20, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit bbe0642
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a287ac17c9ea900089a9cd5
😎 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

codecov Bot commented May 20, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 66.66667% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.27%. Comparing base (613ee05) to head (7af5ce4).
⚠️ Report is 1 commits behind head on main.
✅ 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.26%   93.27%           
=======================================
  Files        1045     1045           
  Lines       61280    61305   +25     
  Branches      424      424           
=======================================
+ Hits        57154    57180   +26     
+ Misses       4126     4125    -1     
Flag Coverage Δ
conformance 36.17% <18.51%> (-0.01%) ⬇️
e2e 41.33% <33.33%> (-0.01%) ⬇️
integration 32.58% <18.51%> (-0.01%) ⬇️
rust 0.00% <ø> (ø)
unit 92.37% <66.66%> (-0.02%) ⬇️
unit-migrate 92.40% <66.66%> (+<0.01%) ⬆️

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.

@github-project-automation github-project-automation Bot moved this from Todo to In Progress in authentik Core Jul 13, 2026
@PeshekDotDev
PeshekDotDev enabled auto-merge (squash) July 14, 2026 07:58
@PeshekDotDev
PeshekDotDev merged commit 1609368 into main Jul 14, 2026
193 of 196 checks passed
@PeshekDotDev
PeshekDotDev deleted the force-authn-saml-provider branch July 14, 2026 08:03
@github-project-automation github-project-automation Bot moved this from In Progress to Done in authentik Core Jul 14, 2026
@github-actions

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-7af5ce449ab0e99fb4201d9bf5f68fe5beeff6ec
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-7af5ce449ab0e99fb4201d9bf5f68fe5beeff6ec

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

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

Projects

Archived in project

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

2 participants