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