Page MenuHomePhabricator

Invalid access token for new user
Open, LowPublic2 Estimated Story PointsSpike

Description

Expected behavior

New users created through the API Portal should be able to create and use an owner-only OAuth access token without needing to log in to individual wikis.

Observed behavior

As a new user, created through the API Portal, I can only use an owner-only OAuth access token to access wikis that I have visited and have never in the history of my account, logged in to. For example, this request fails unless I first log in to fr.wikipedia.org:

curl -H "Authorization: Bearer TOKEN_HERE" https://api.wikimedia.org/core/v1/wikipedia/fr/page/Chat/bare

{"error":"rest-read-denied","httpCode":403,"httpReason":"Forbidden"}
Acceptance Criteria
  • Investigate the issue to propose implementation options to resolve this issue
Note

Estimations reflect the timebox we're giving this task

Event Timeline

sdkim changed the subtype of this task from "Task" to "Bug Report".Jun 10 2021, 2:49 PM

@apaskulin do you know if this is this still an issue? I wasn't able to replicate given the current task description!

sdkim updated the task description. (Show Details)
sdkim set the point value for this task to 2.
Restricted Application changed the subtype of this task from "Bug Report" to "Spike". · View Herald TranscriptDec 2 2021, 5:10 PM
DAbad lowered the priority of this task from High to Low.
DAbad moved this task from Must do now to Should do next on the API Platform board.
DAbad subscribed.

It's been a few months. Closing this task. If able to replicate again or notice issue once more we can reopen.

I tested this again today and was able to reproduce it.

For some background, we had a similar issue with T264637 where users who hadn't logged in to Meta-Wiki weren't seeing their API keys in the Portal. We were able to fix that issue, but since this issue applies to all wikis, I don't know if we'll be able to use the same solution.

Even if it turns out that we aren't able to fix this issue and we need to ask users to log in to whichever wiki they want to access, I'd like to keep this task open to track the documentation change.