Skip to content

sources/saml: Add testcases for PR #19593#19647

Merged
BeryJu merged 1 commit intogoauthentik:mainfrom
ant-r-ih:test-SAML-signed-res-verify
Jan 27, 2026
Merged

sources/saml: Add testcases for PR #19593#19647
BeryJu merged 1 commit intogoauthentik:mainfrom
ant-r-ih:test-SAML-signed-res-verify

Conversation

@ikob
Copy link
Contributor

@ikob ikob commented Jan 21, 2026

Details

The SAML signature issues originally raised in #18176 were addressed and merged in #19593.

While the functional changes look good, I believe the test coverage for
sources/saml/processors/response.py is still insufficient.

This PR adds additional test cases to improve coverage of the signature and encryption handling paths.
The tests and fixtures are largely based on what was prepared in the original PR (#18176), adapted to the current implementation.


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 has been updated (make gen-build)

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)

@ikob ikob requested a review from a team as a code owner January 21, 2026 15:55
@netlify
Copy link

netlify bot commented Jan 21, 2026

Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 45a444d
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6970f6e3afb7d50008435b6f
😎 Deploy Preview https://deploy-preview-19647--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

netlify bot commented Jan 21, 2026

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 45a444d
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6970f6e3a71eba0008a90ad9
😎 Deploy Preview https://deploy-preview-19647--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

netlify bot commented Jan 21, 2026

Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 45a444d
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6970f6e34f946e0008fe87d0
😎 Deploy Preview https://deploy-preview-19647--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

codecov bot commented Jan 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.22%. Comparing base (61ddd76) to head (45a444d).
⚠️ Report is 102 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #19647      +/-   ##
==========================================
- Coverage   93.28%   93.22%   -0.06%     
==========================================
  Files         949      949              
  Lines       52131    52163      +32     
==========================================
+ Hits        48629    48630       +1     
- Misses       3502     3533      +31     
Flag Coverage Δ
conformance 38.24% <0.00%> (-0.03%) ⬇️
e2e 44.08% <0.00%> (-0.03%) ⬇️
integration 23.14% <0.00%> (-0.07%) ⬇️
unit 91.54% <100.00%> (+0.02%) ⬆️
unit-migrate 91.55% <100.00%> (-0.01%) ⬇️

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.

@BeryJu BeryJu merged commit 08cbd17 into goauthentik:main Jan 27, 2026
99 checks passed
kensternberg-authentik added a commit that referenced this pull request Jan 31, 2026
* main: (45 commits)
  sources/saml: Add testcases for PR #19593 (#19647)
  revert: website/integrations: wazuh: Change exchange key generation to 64 bytes (#19759)
  web: bump API Client version (#19760)
  core: bump djangoql from 0.18.2 to 0.19.1 (#19780)
  web: Vendor SFE Bootstrap (#19766)
  core, web: update translations (#19717)
  web: bump the eslint group across 1 directory with 3 updates (#19782)
  web: bump the react group across 1 directory with 2 updates (#19784)
  web: bump country-flag-icons from 1.6.8 to 1.6.9 in /web (#19785)
  providers/oauth2: Support login_hint (#19498)
  admin/files: add centralized theme variable support for file URLs (#19657)
  core: bump github.com/pires/go-proxyproto from 0.9.1 to 0.9.2 (#19778)
  core: bump openapitools/openapi-diff from 2.1.6 to 2.1.7 in /scripts/api (#19779)
  core: bump gssapi from 1.10.1 to 1.11.1 (#19781)
  ci: bump actions/attest-build-provenance from 3.1.0 to 3.2.0 (#19783)
  website/docs: endpoint devices: fix local device login (#19698)
  web: Enforce `challenge` nullish types. (#19768)
  web/elements: stabilize dual-select status height (#19734)
  web/a11y: CAPTCHA Stage Form (#19670)
  web/table: align row action icons and tooltip color (#19736)
  ...
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.

2 participants