Skip to content

sources/saml: log response processing errors and show users a generic message - #27012

Merged
PeshekDotDev merged 2 commits into
mainfrom
sources/saml-response-errors
Oct 22, 2026
Merged

PeshekDotDev merged 2 commits into
mainfrom
sources/saml-response-errors

Conversation

@PeshekDotDev

Copy link
Copy Markdown
Contributor

Details

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 Oct 19, 2026
@PeshekDotDev
PeshekDotDev requested a review from a team as a code owner October 19, 2026 07:07
@netlify

netlify Bot commented Oct 19, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 5e26d26
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6ad5c1bcfdc53a3f976e3e1e
😎 Deploy Preview https://deploy-preview-27012--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 Oct 19, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 74.28571% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.38%. Comparing base (f248495) to head (6dfd050).
⚠️ Report is 70 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
authentik/sources/saml/views.py 58.33% 5 Missing ⚠️
authentik/sources/saml/processors/response.py 66.66% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #27012      +/-   ##
==========================================
+ Coverage   92.29%   92.38%   +0.09%     
==========================================
  Files        1185     1190       +5     
  Lines       79595    80172     +577     
  Branches     4351     4351              
==========================================
+ Hits        73462    74067     +605     
+ Misses       6067     6039      -28     
  Partials       66       66              
Flag Coverage Δ
conformance 32.31% <17.14%> (-0.11%) ⬇️
e2e 36.99% <28.57%> (-0.12%) ⬇️
integration 29.19% <17.14%> (-0.09%) ⬇️
rust 44.42% <ø> (ø)
unit 94.03% <74.28%> (+0.08%) ⬆️
unit-migrate 94.03% <74.28%> (+0.08%) ⬆️

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 Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Playwright e2e

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

gh run download 39851818117 -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-6dfd0502623ad22f8d1af0853d053dd229093194
# Distroless image: AUTHENTIK_TAG=gh-6dfd0502623ad22f8d1af0853d053dd229093194-distroless
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-6dfd0502623ad22f8d1af0853d053dd229093194
        # Distroless image: tag: gh-6dfd0502623ad22f8d1af0853d053dd229093194-distroless

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

Comment thread authentik/sources/saml/views.py Outdated
"Failed to process SAML response",
source=source.slug,
exc_type=type(exc).__name__,
exc=str(exc),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just pass exception

@github-project-automation github-project-automation Bot moved this from Todo to In Progress in authentik Core Oct 19, 2026
@netlify

netlify Bot commented Oct 22, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

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

@PeshekDotDev
PeshekDotDev enabled auto-merge (squash) October 22, 2026 20:56
@PeshekDotDev
PeshekDotDev merged commit 61e1f1d into main Oct 22, 2026
169 of 170 checks passed
@PeshekDotDev
PeshekDotDev deleted the sources/saml-response-errors branch October 22, 2026 21:13
@github-project-automation github-project-automation Bot moved this from In Progress to Done in authentik Core Oct 22, 2026
kensternberg-authentik added a commit that referenced this pull request Oct 23, 2026
* main:
  website/docs: remove xattr workaround for agent (#27128)
  web/elements: make ak-toggle-group akForm-compatible and form-associated (#27092)
  root: bump ctutils (#27129)
  web/elements: make toggle group usable as input field (#27061)
  sources/ldap: fix password write error message (#27076)
  core, web: update translations (#27123)
  core: bump cachetools from 7.2.3 to 7.2.4 (#27125)
  sources/saml: log response processing errors and show users a generic message (#27012)
  sources/saml: Tell IDP to use AES256-GCM by default (#27010)
  website/docs: fix mention of saml 1.1 assertion support for ws-fed (#27113)
kensternberg-authentik added a commit that referenced this pull request Oct 23, 2026
…r-footer-dependency' into web/elements/sidebar-footer-dependency

* refs/remotes/origin/web/elements/sidebar-footer-dependency:
  Replace aria wayfinders used for testing with Open UI Automation identifiers.
  web/element: Move the SidebarVersion out of Elements.
  .
  .
  The test exists and passes.
  Moving the load of the AdminOverviewPage to the entrypoint. The idea is to have the dashboard as live as possible as early as possible.  Putting into Routes made Routes into a browser-only feature, and it could not be unit tested without this move.
  Formatter opinions.
  That side effect infected downstream tests. Darnit.
  web/admin: Simplify sidebar entries handling
  website/docs: remove xattr workaround for agent (#27128)
  web/elements: make ak-toggle-group akForm-compatible and form-associated (#27092)
  root: bump ctutils (#27129)
  web/elements: make toggle group usable as input field (#27061)
  sources/ldap: fix password write error message (#27076)
  core, web: update translations (#27123)
  core: bump cachetools from 7.2.3 to 7.2.4 (#27125)
  sources/saml: log response processing errors and show users a generic message (#27012)
  sources/saml: Tell IDP to use AES256-GCM by default (#27010)
  website/docs: fix mention of saml 1.1 assertion support for ws-fed (#27113)
@dewi-tik dewi-tik added the backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8 label Oct 29, 2026
@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

⚠️ Cherry-pick to version-2026.8 has conflicts: #27356

kensternberg-authentik added a commit that referenced this pull request Nov 5, 2026
…single-shadowdom-sidebar

* web/elements/sidebar-api-disconnect:
  Replace aria wayfinders used for testing with Open UI Automation identifiers.
  web/element: Move the SidebarVersion out of Elements.
  .
  .
  The test exists and passes.
  Moving the load of the AdminOverviewPage to the entrypoint. The idea is to have the dashboard as live as possible as early as possible.  Putting into Routes made Routes into a browser-only feature, and it could not be unit tested without this move.
  Formatter opinions.
  That side effect infected downstream tests. Darnit.
  web/admin: Simplify sidebar entries handling
  website/docs: remove xattr workaround for agent (#27128)
  web/elements: make ak-toggle-group akForm-compatible and form-associated (#27092)
  root: bump ctutils (#27129)
  web/elements: make toggle group usable as input field (#27061)
  sources/ldap: fix password write error message (#27076)
  core, web: update translations (#27123)
  core: bump cachetools from 7.2.3 to 7.2.4 (#27125)
  sources/saml: log response processing errors and show users a generic message (#27012)
  sources/saml: Tell IDP to use AES256-GCM by default (#27010)
  website/docs: fix mention of saml 1.1 assertion support for ws-fed (#27113)
BeryJu pushed a commit that referenced this pull request Nov 15, 2026
… message (cherry-pick #27012 to version-2026.8) (#27356)

* Cherry-pick #27012 to version-2026.8 (with conflicts)

This cherry-pick has conflicts that need manual resolution.

Original PR: #27012
Original commit: 61e1f1d

* fix tests/lint

---------

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.

3 participants