- First commit to issue fork.
- πΊπΈUnited States devkinetic
I believe the true solution to this situation is two fold.
- Roll in support for #3231779: Add support for Bearer authorization format β
- When a user is not found, instead return a
Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException
For example:
if (!$key_auth instanceof UserInterface) { throw new UnauthorizedHttpException('Bearer realm(**YOUR-DOMAIN**)', 'Invalid consumer API key.'); }