Page MenuHomePhabricator

OAuth2 authorizing gives an infinite loop between 2 urls
Closed, ResolvedPublic

Related Objects

Event Timeline

This only seems to happen if you are using OAuth2 and there already is a row in oauth_accepted_consumer for the consumer/user pair (ie. you haven't accepted this consumer before starting this authorization flow).

@Majavah would a Medium priority be appropriate for this task?

@Majavah would a Medium priority be appropriate for this task?

I think it's fine.

This completely breaks OAuth 2 for apps with a "User identity verification only" grant (maybe others too, I'm not sure). That seems borderline Unbreak now! to me.

AMooney raised the priority of this task from Medium to High.Jun 16 2020, 3:02 PM

"High" seems like the right priority here.

Change 606298 had a related patch set uploaded (by BPirkle; owner: BPirkle):
[mediawiki/extensions/OAuth@master] Fix infinite redirect loop for some OAuth 2 client approvals

https://gerrit.wikimedia.org/r/606298

Change 606298 merged by jenkins-bot:
[mediawiki/extensions/OAuth@master] Fix infinite redirect loop for some OAuth 2 client approvals

https://gerrit.wikimedia.org/r/606298

@Majavah can you re-test?

Appears to be working on the beta cluster, thanks everyone!