Skip to content

Commit

Permalink
Add some instructions for creating an OAuth 2.0 application
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwlchan committed Oct 9, 2023
1 parent 8a98cf0 commit 54e9e13
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docs/create-an-oauth-application.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Create an OAuth 2.0 application

Flickypedia is an OAuth 2.0 application on Wikimedia.

If you want to create new API keys (either to run your own instance of Flickypedia or for development work):

1. Read [OAuth/For Developers][for_developers] in the MediaWiki docs.

2. Open the Special:OAuthConsumerRegistration/propose form:

* [in the live Wikimedia Commons environment](https://meta.wikimedia.org/wiki/Special:OAuthConsumerRegistration/propose)
* [in the beta Wikimedia Commons environment](https://meta.wikimedia.beta.wmflabs.org/wiki/Special:OAuthConsumerRegistration/propose)

3. Click "Propose an OAuth 2.0 client".

4. Fill in the Application name, Consumer version, Application description, and so on.

In the list of applicable grants, select the following:

* Create, edit, and move pages
* Upload new files

You will get a client ID and client secret.
Make sure you write these down -- you'll need them later!

[for_developers]: https://www.mediawiki.org/wiki/OAuth/For_Developers

0 comments on commit 54e9e13

Please sign in to comment.