You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix(auth): allow cookie auth for same-origin OAuth callback fetch requests
The browser detection logic in the auth middleware only recognized
/admin referrers as same-origin UI requests. Fetch calls from the
OAuth callback page (/oauth/callback) use Accept: application/json,
causing the middleware to treat them as external API requests and
reject cookie-based authentication with a 401.
Extended the same-origin referer check to also match /oauth/callback
paths, so tool-fetching after a successful OAuth authorization flow
is no longer incorrectly blocked.
Fixes#4867
Signed-off-by: Bogdan-Marius-Catanus <bogdan-marius.catanus@ibm.com>
* fix .secrets.baseline
Signed-off-by: Bogdan-Marius-Catanus <bogdan-marius.catanus@ibm.com>
* fixed the pre-commit
Signed-off-by: Jitesh Nair <jiteshnair@ibm.com>
---------
Signed-off-by: Bogdan-Marius-Catanus <bogdan-marius.catanus@ibm.com>
Signed-off-by: Jitesh Nair <jiteshnair@ibm.com>
Co-authored-by: Bogdan-Marius-Catanus <bogdan-marius.catanus@ibm.com>
Co-authored-by: Jitesh Nair <jiteshnair@ibm.com>
0 commit comments