Skip to content

Custom authorization error master - #242

Merged
tomaj merged 1 commit into
masterfrom
custom-authorization-error-master
Nov 7, 2026
Merged

tomaj merged 1 commit into
masterfrom
custom-authorization-error-master

Conversation

@lulco

@lulco lulco commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

@tomaj we use this when we want to inform user which permission (ACL) is missing when they call some protected API endpoints. Token doesn't exist or isn't active isn't good enough.

@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-11-07 14:27 UTC

TokenRepositoryInterface::validToken() may throw InvalidTokenException;
its message is returned as the 401 error message.
@tomaj
tomaj force-pushed the custom-authorization-error-master branch from 6132056 to b8234ad Compare November 7, 2026 13:04
@tomaj

tomaj commented Nov 7, 2026

Copy link
Copy Markdown
Owner

Díky, @lulco! Do 3.x to už ide cez #241 (vyšlo v 3.7.0), takže tento PR nechávame na master pre 4.0. Pridal som test pre InvalidTokenException a dokumentáciu (EN aj SK) aj s upozornením, že správa ide priamo klientovi, a zlúčil som to do jedného commitu. Keď prejde CI, mergnem.

@tomaj
tomaj merged commit 0d97d7e into master Nov 7, 2026
35 checks passed
@lulco
lulco deleted the custom-authorization-error-master branch November 7, 2026 18:52
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