Page MenuHomePhabricator

Setup OAuth handshake and get access tokens for editing
Closed, ResolvedPublic

Description

We should use already loaded mwoath library (or the flask module for it) to get the edit credentials after initiating a "handshake" with the wiki we want to edit (https://test-commons.wikimedia.org initially)

https://pypi.org/project/mwoauth/
https://pythonhosted.org/mwoauth/#module-mwoauth.flask

Once the handshake is complete, we receive the final access token and key needed to make edits on behalf of the user.

For this task, any editing action can be used for testing that you can edit on behalf of a user.

All API actions and data for edits will be passed from the client side when contributions are posted.

All that will be needed is the addition of both relevant keys and secrets:

  • Application token and secret
  • User access token and secret

Event Timeline

NavinoEvans triaged this task as High priority.
NavinoEvans created this task.
NavinoEvans moved this task from Backlog to Pending on the ISA board.

Change 524638 had a related patch set uploaded (by Eugene233; owner: Eugene233):
[labs/tools/Isa@master] Setup OAuth handshake and get access tokens for editing

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

Change 524638 merged by jenkins-bot:
[labs/tools/Isa@master] Setup OAuth handshake and get access tokens for editing

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