Repository navigation
providers/saml: show users a generic error message and log details; make translatable - #27013
Conversation
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #27013 +/- ##
==========================================
+ Coverage 93.00% 93.06% +0.05%
==========================================
Files 1238 1238
Lines 86559 86589 +30
Branches 4894 4894
==========================================
+ Hits 80508 80584 +76
+ Misses 5964 5918 -46
Partials 87 87
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
Playwright e2eDownload this run's HTML report and traces, then open the report: gh run download 43910535703 -D playwright-artifacts
npx playwright show-report playwright-artifacts/playwright-reportInstallation instructionsInstructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-0832085b57626625b66d861f0da01beee65fb483
# Distroless image: AUTHENTIK_TAG=gh-0832085b57626625b66d861f0da01beee65fb483-distroless
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your 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-0832085b57626625b66d861f0da01beee65fb483
# Distroless image: tag: gh-0832085b57626625b66d861f0da01beee65fb483-distrolessAfterwards, run the upgrade commands from the latest release notes. |
| detail=( | ||
| f"ACS URL of {request_acs_url} doesn't match Provider " | ||
| f"ACS URL of {self.provider.acs_url}." | ||
| ), |
| raise CannotHandleAssertion(ERROR_CANNOT_DECODE_REQUEST) from None | ||
| except ValueError as exc: | ||
| # covers binascii.Error (invalid base64) and UnicodeDecodeError (not UTF-8) | ||
| raise CannotHandleAssertion(ERROR_CANNOT_DECODE_REQUEST, detail=str(exc)) from None |
There was a problem hiding this comment.
(applies to all of these) just pass the exception directly instead of casting it to string
| Event.new( | ||
| EventAction.CONFIGURATION_ERROR, | ||
| provider=self.provider, | ||
| message=f"{message} {exc.detail}" if exc.detail else message, |
There was a problem hiding this comment.
use exception_to_dict instead of the string of the exception
There was a problem hiding this comment.
Fixed but please verify
| Event.new( | ||
| EventAction.CONFIGURATION_ERROR, | ||
| provider=self.provider, | ||
| message=f"{message} {exc.detail}" if exc.detail else message, |
There was a problem hiding this comment.
Fixed but please verify
* main: (158 commits) website/integrations: document ezbookkeeping username format (#27831) core: bump twilio from 9.12.0 to 9.13.0 (#27872) core: bump watchdog from 7.0.0 to 7.1.0 (#27876) core: bump ruff from 0.17.4 to 0.17.5 (#27870) core: bump importlib-metadata from 10.1.0 to 10.2.0 (#27875) core: bump cachetools from 7.3.0 to 7.3.1 (#27873) core: bump goauthentik/fips-python from `4ad62df` to `96730cd` in /lifecycle/container (#27868) core: bump goauthentik/fips-debian from `2c0f8e5` to `56dbb46` in /lifecycle/container (#27867) web: enable Danish (da-DK) locale (#26776) website/docs: add expiring users to release notes (#27860) enterprise/endpoints/connectors/agent: fix Platform SSO web login (#27858) providers/saml: show users a generic error message and log details; make translatable (#27013) core: bump psycopg[c,pool] from 3.3.8 to 3.3.9 (#27848) core: bump watchdog from 6.0.0 to 7.0.0 (#27846) core: bump hyper-unix-socket from 0.7.0 to 0.8.0 (#27845) core: bump library/node from 26.13.0-trixie-slim to 26.13.1-trixie-slim in /lifecycle/container (#27839) ci: bump getsentry/action-release from 3.7.2 to 3.8.0 (#27842) core: bump goauthentik/fips-python from `f4eb865` to `4ad62df` in /lifecycle/container (#27837) core: bump jsonpatch from 1.43 to 1.44 (#27843) core: bump types-ldap3 from 2.9.13.20260827 to 2.9.13.20261107 in the types group (#27836) ...
Details
What does this PR change?
Why is this change needed?
How was this tested?
Linked issues
Checklist
make all)make docs)