Skip to content

sources/saml: Fallback NameID - #25713

Merged
PeshekDotDev merged 4 commits into
mainfrom
fix-saml-source-nameid-format
Sep 22, 2026
Merged

PeshekDotDev merged 4 commits into
mainfrom
fix-saml-source-nameid-format

Conversation

@PeshekDotDev

Copy link
Copy Markdown
Contributor

Details

Instead of erroring and crashing when no nameid format is supplied, we handle it properly. Also quickly fixed how we handle invalid time window in certificates

What does this PR change?

Why is this change needed?

How was this tested?

Linked issues


Checklist

  • The project has been linted, built, and tested (make all)
  • The documentation has been updated and formatted (make docs)
  • I have read the AI usage policy.

@PeshekDotDev PeshekDotDev self-assigned this Sep 3, 2026
@PeshekDotDev
PeshekDotDev requested a review from a team as a code owner September 3, 2026 10:40
@netlify

netlify Bot commented Sep 3, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit e7e733e
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a994e8fb2b556000804044e
😎 Deploy Preview https://deploy-preview-25713--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 Sep 3, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.90909% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.03%. Comparing base (f7fdbab) to head (0dc9ab3).
⚠️ Report is 3 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
authentik/sources/saml/processors/response.py 71.42% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main   #25713   +/-   ##
=======================================
  Coverage   92.02%   92.03%           
=======================================
  Files        1175     1175           
  Lines       76438    76454   +16     
  Branches     4056     4056           
=======================================
+ Hits        70343    70362   +19     
+ Misses       6053     6050    -3     
  Partials       42       42           
Flag Coverage Δ
conformance 33.44% <9.09%> (-0.01%) ⬇️
e2e 38.20% <22.72%> (-0.01%) ⬇️
integration 30.18% <9.09%> (-0.01%) ⬇️
rust 42.89% <ø> (ø)
unit 93.59% <90.90%> (+<0.01%) ⬆️
unit-migrate 93.60% <90.90%> (+<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-actions

github-actions Bot commented Sep 3, 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-e7e733e7b3c6b80f6a27ccd014533a596e44b7bb
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-e7e733e7b3c6b80f6a27ccd014533a596e44b7bb

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

@BeryJu BeryJu changed the title sources/saml: Fix saml source nameid format sources/saml: Fallback NameID Sep 21, 2026
@github-project-automation github-project-automation Bot moved this from Todo to In Progress in authentik Core Sep 21, 2026
@PeshekDotDev PeshekDotDev added the backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8 label Sep 22, 2026
@PeshekDotDev
PeshekDotDev enabled auto-merge (squash) September 22, 2026 08:03
@github-actions

github-actions Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Playwright e2e

Download this run's HTML report, traces and server logs, then open the report:

gh run download 35702577828 -D playwright-artifacts
npx playwright show-report playwright-artifacts/playwright-report

Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-0dc9ab33bf15a6ae7d8e0325d7c6948aeec8bd3c
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-0dc9ab33bf15a6ae7d8e0325d7c6948aeec8bd3c

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

@PeshekDotDev
PeshekDotDev merged commit 3c87264 into main Sep 22, 2026
145 of 146 checks passed
@PeshekDotDev
PeshekDotDev deleted the fix-saml-source-nameid-format branch September 22, 2026 08:29
@github-project-automation github-project-automation Bot moved this from In Progress to Done in authentik Core Sep 22, 2026
@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

🍒 Cherry-pick to version-2026.8 created: #26339

PeshekDotDev added a commit that referenced this pull request Sep 22, 2026
…26339)

sources/saml: Fallback NameID (#25713)

* sources/saml: fix unhandled error on NameID without Format attribute

* fix error handling

* fix description

Co-authored-by: Connor Peshek <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants