Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2975 from groovecoder/github-login-instructions-9…
Browse files Browse the repository at this point in the history
…57802

bug 957802 - docs for GitHub auth
  • Loading branch information
ubernostrum committed Dec 29, 2014
2 parents ebbd8df + e0f8010 commit 4f45829
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ by running ``npm install fibers``.
Log in
======

You can log into the wiki using Persona or via the django admin interface.
If you use the admin interface, you can log in as the user you created during installation
or on the vagrant VM use login ``admin`` with password ``admin``.
You can log into MDN using Persona or GitHub. For GitHub, you must first enable
:ref:`GitHub Auth` as described in the installation instructions.

Set up permissions
==================
Expand Down
31 changes: 31 additions & 0 deletions docs/installation-vagrant.rst
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,37 @@ Some site features are controlled using `constance
<https://github.com/comoga/django-constance>`_. You control these features in
the `constance config admin panel`_.

.. _GitHub Auth:

GitHub Auth
~~~~~~~~~~~

To enable GitHub authentication ...

`Register your own OAuth application on GitHub`_:

* Application name: MDN (<username>)
* Homepage url: https://developer-local.allizom.org/docs/MDN/Contribute/Howto/Create_an_MDN_account
* Application description: My own GitHub app for MDN!
* Authorization callback URL: https://developer-local.allizom.org/users/github/login/callback/

`Add a django-allauth social app`_ for GitHub:

* Provider: GitHub
* Name: developer-local.allizom.org
* Client id: <your GitHub App Client ID>
* Secret key: <your GitHub App Client Secret>
* Sites: example.com -> Chosen sites

GitHub auth is also (temporarily) behind a waffle flag. So, `add a waffle
flag`_ called ``github_login`` and set "Everyone" to "Yes".

Now you can sign in with GitHub at https://developer-local.allizom.org

.. _Add a django-allauth social app: https://developer-local.allizom.org/admin/socialaccount/socialapp/add/
.. _Register your own OAuth application on GitHub: https://github.com/settings/applications/new


Wiki Editing
~~~~~~~~~~~~

Expand Down

0 comments on commit 4f45829

Please sign in to comment.