Closed
Bug 1159354
Opened 10 years ago
Closed 10 years ago
Implement GET /api/v1/users/me
Categories
(developer.mozilla.org Graveyard :: BrowserCompat, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jwhitlock, Assigned: jwhitlock, Mentored)
References
Details
(Whiteboard: [bc:infra][bc:milestone=bicycle])
What problem would this feature solve?
======================================
When using an authenticated session or an auth token, determine the user account
Who has this problem?
=====================
API client writers
How do you know that the users identified above have this problem?
==================================================================
Not yet a problem. The API is in progress, and this feature is only needed by API client writers.
How are the users identified above solving this problem now?
============================================================
In the browser, the HTML includes the login state, and the profile pages give detailed information. For existing API tools, logging in is usually the first step, so the user is known.
Do you have any suggestions for solving the problem? Please explain in detail.
==============================================================================
The proposed implementation is documented in the API design docs: http://web-platform-compat.readthedocs.org/en/latest/draft/change-control.html#users
Is there anything else we should know?
======================================
This may be related to slug-based lookups, bug 1078699
Updated•10 years ago
|
Component: General → BrowserCompat
Comment 1•10 years ago
|
||
Is this bug related on how to lookup up with Kuma to make writes?
Flags: needinfo?(jwhitlock)
Assignee | ||
Comment 2•10 years ago
|
||
This endpoint answers the questions "Are you authenticated against the BrowserCompat API? Who are you? What permissions do you have?". You present your token, or your cookie, and get an answer.
There are no open bugs yet for similar questions of the Kuma API.
Flags: needinfo?(jwhitlock)
Updated•10 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: [Compat Data] Implement GET /api/v1/users/me → Implement GET /api/v1/users/me
Whiteboard: [specification][type:feature] → [bc:infra]
Assignee | ||
Updated•10 years ago
|
Mentor: jwhitlock
Assignee | ||
Updated•10 years ago
|
Whiteboard: [bc:infra] → [bc:infra][bc:milestone=bicycle]
Updated•10 years ago
|
Severity: enhancement → minor
Assignee | ||
Comment 3•10 years ago
|
||
Bumping severity to normal, because needed for clients of token-based authentication (bug 1230604)
Severity: minor → normal
Updated•10 years ago
|
Assignee: nobody → jwhitlock
Status: NEW → ASSIGNED
Comment 4•10 years ago
|
||
Commits pushed to master at https://github.com/mdn/browsercompat
https://github.com/mdn/browsercompat/commit/83ed530560c94dc1025863091964a7f2319ea183
bug 1159354 - Add /api/v#/users/me endpoint
If a client is authenticated, then this endpoint returns a 302 redirect
to the user's resource. If not authenticated, the response is a 401
Unauthorized (if authentication can be recommended in the
WWW-Authenticate header) or 403 Forbidden (if it can't).
https://github.com/mdn/browsercompat/commit/50f283abcc62cc8d90267f0a6ac4554e0884408a
bug 1159354 - Add tests, docs for /users/me
Includes some additional handling for the new Location and
WWW-Authenticate headers not seen before in documentation.
https://github.com/mdn/browsercompat/commit/d7914155285383d9c67ca02a684392cf2b07f9db
Merge pull request #102 from mdn/users_me_1159354
bug 1159354 - Add /api/v#/users/me endpoint
Assignee | ||
Updated•10 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•5 years ago
|
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•