Closed (won't fix)
Project:
Simple OAuth (OAuth2) & OpenID Connect
Version:
6.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Apr 2025 at 06:57 UTC
Updated:
21 Oct 2025 at 13:09 UTC
Jump to comment: Most recent
Comments
Comment #4
bojan_dev commentedI tested how Basic Auth does this, and a non existing URL will get 404 even if the credentials are incorrect, so I think it's a valid point. Please review the MR !185, it does not apply OAuth2 anymore if the URL is not valid.
Comment #6
bojan_dev commentedComment #9
bojan_dev commentedIt appears there are cases where a route is not available, but OAuth2 still needs to be applied (see #3552854: REST routes broken again and #3547975: REST routes crashing, claiming unsupported format).
When comparing this with Basic Auth, the authenticate method returns NULL when the credentials are incorrect. However, in the simple_oauth case, it throws exceptions in different cases, which is relevant for interpretation by the requester. Marking this as won’t fix for now and reverted the MR.