[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Page MenuHomePhabricator

Reset of OAuth1 consumer displays incorrect tokens
Closed, ResolvedPublic

Description

I've tried to reset tokens assigned to consumer ID cbe87a5ad356902ee3c376495cb8d4fc secret. That gave access token 4cc161636585720e60a279f353801c10, however:

wikiadmin@10.64.32.198(metawiki)> select oaac_access_token from oauth_accepted_consumer where oaac_consumer_id=(select oarc_id from oauth_registered_consumer where oarc_consumer_key="cbe87a5ad356902ee3c376495cb8d4fc");
+----------------------------------+
| oaac_access_token                |
+----------------------------------+
| f71b919430e100def2fc8c86e3e75180 |
+----------------------------------+
1 row in set (0.00 sec)

The only possible workaround of this issue is to either get a new consumer, or contact a sysadmin and ask them to get the correct tokens from the DB.

Event Timeline

I've looked which tokens are wrong, it seems only access token is wrong. This is caused by a479633, which uses the newly-generated access token (which is never stored in the database), instead of the "old" one. The fix is simple, pass consumer acceptance in MWOAuthConsumerSubmitControl, and get the right access token in the special page from the acceptance. Patch upcoming...

Change 579811 had a related patch set uploaded (by Urbanecm; owner: Urbanecm):
[mediawiki/extensions/OAuth@master] Display correct access token in SpecialMWOAuthConsumerRegistration

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

Tgr subscribed.

Thanks for fixing!

Change 579811 merged by jenkins-bot:
[mediawiki/extensions/OAuth@master] Display correct access token in SpecialMWOAuthConsumerRegistration

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