I'm trying to use OAuth 2 via the OAuth extension. First time, I got the "Do you want to give this app access to your account" screen, however, the second time I tried to do that (had a bug somewhere in auth logic) it started redirecting between these two urls:
- https://meta.wikimedia.beta.wmflabs.org/w/rest.php/oauth2/authorize?client_id=cd6061338c4d1ac30aa6d50953ee0738&redirect_uri=http%3A%2F%2Futrs.test%2Foauth%2Fcallback&scope=&response_type=code&state=bba49LfBM74N1CTWyEPICDuUe8KFhRXKPe4udCYl
- https://meta.wikimedia.beta.wmflabs.org/w/index.php?title=Special:OAuth/approve&returnto=%2Fw%2Frest.php%2Foauth2%2Fauthorize&returntoquery=client_id%3Dcd6061338c4d1ac30aa6d50953ee0738%26redirect_uri%3Dhttp%253A%252F%252Futrs.test%252Foauth%252Fcallback%26scope%3D%26response_type%3Dcode%26state%3Dbba49LfBM74N1CTWyEPICDuUe8KFhRXKPe4udCYl&client_id=cd6061338c4d1ac30aa6d50953ee0738&oauth_version=2&scope=mwoauth-authonlyprivate
I'm using consumer cd6061338c4d1ac30aa6d50953ee0738 on beta meta as suggested by the docs.
In case it's helpful, I was using the code at P11189 with Laravel Socialite.