Advertise only the header bearer method in the resource metadata
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 85/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- php
- Domain
- authentication
Research direction
Open modules/simple_oauth_server_metadata/src/Service/ResourceMetadataService.php at line 69 and check how bearer_methods_supported is set. Change the advertised methods to match the supported Authorization header method, then verify /.well-known/oauth-protected-resource lists only header.
Written by the indexing model from the issue text.
Description
Problem
/.well-known/oauth-protected-resource returns "bearer_methods_supported": ["header", "body", "query"] (modules/simple_oauth_server_metadata/src/Service/ResourceMetadataService.php, line 69). simple_oauth reads the access token only from the Authorization header.
A client that obeys the metadata can put the token in the URL. The request fails, and the token goes into the request logs of servers and proxies.
Expected Behavior
The metadata lists only header.
Steps to Reproduce
- Open
/.well-known/oauth-protected-resource. The value ofbearer_methods_supportedcontainsheader,bodyandquery. - Send
GET /oauth/userinfowith the headerAuthorization: Bearer <access token>. The response is 200. - Send
GET /oauth/userinfo?access_token=<access token>. The response is 403. - Send
POST /oauth/userinfowith the form parameteraccess_token=<access token>. The response is 403.
Additional Context
Found on v2.1.1.
- Dominant language
- JavaScript
- Stars
- 6
- Forks
- 9
- Avg merge
- 9h 41m
- Merged PRs (30d)
- 15
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from e0ipso/simple_oauth_21
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
e0ipso/simple_oauth_21#63 ·
Maintainers usually reply within 1 day
-
category::bug code priority::normal
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
e0ipso/simple_oauth_21#55 ·
Maintainers usually reply within 1 day
-
category::bug code priority::minor
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
e0ipso/simple_oauth_21#54 ·
Maintainers usually reply within 1 day
-
category::bug code priority::minor
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
e0ipso/simple_oauth_21#53 ·
Maintainers usually reply within 1 day
-
category::bug code priority::minor
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
e0ipso/simple_oauth_21#52 ·
Maintainers usually reply within 1 day
All issues in e0ipso/simple_oauth_21
Similar issues
-
bug
Difficulty 1/5 1-3 hours Newbie friendliness 78/100
Jason-Vaughan/TangleClaw#3270 ·
Maintainers usually reply within 1 day
-
docs
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
open-telemetry/opentelemetry.io#12846 ·
Maintainers usually reply within 1 day
-
Beginner Enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
JSPrismarine/JSPrismarine#3740 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 1/5 Under an hour Newbie friendliness 88/100
xdelmo/Portfolio-minimal#637 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
angrymrt/wiskunde-fit#242 ·
Maintainers usually reply within 1 day