Resolve "Bug: .well-known/oauth-protected-resource returns resource as an array (violates RFC 9728)"
What does this MR do and why?
Fix the response for .well-known/oauth-protected-resource to return resource as URL string instead of an array.
References
https://gitlab.com/gitlab-org/gitlab/-/work_items/588661
Screenshots or screen recordings
| Before | After |
|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How to set up and validate locally
- Using curl or a REST Client, call
http://localhost:3000/.well-known/oauth-protected-resource - Observe resource in the response
- Clone and checkout this branch
- Using curl or a REST Client, call
http://localhost:3000/.well-known/oauth-protected-resource - Observe resource in the response
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #588661 Closes https://gitlab.com/gitlab-org/gitlab/-/work_items/588661
Edited by Diana Zubova





