Skip to content

Files

Latest commit

Dec 2, 2014
4f8bdbf · Dec 2, 2014

History

History
32 lines (28 loc) · 1004 Bytes

README.md

File metadata and controls

32 lines (28 loc) · 1004 Bytes

Github Dillinger Plugin

  1. Create your app with Github: https://github.com/settings/applications/new
  2. Create your github-config.json. It needs to contain:
    {
      "client_id": "YOUR_ID",
      "client_secret": "YOUR_SECRET",
      "redirect_uri": "YOUR_REDIRECT_URI", // eg, http://dillinger.io
      "callback_url": "YOUR_CALLBACK_URL" // eg, http://dillinger.io/oauth/github
    }
  1. Optionally, you can also generate a one-time personal access token from here: https://github.com/settings/applications

If you go this route, your github-config.json needs to contain:

    {
      "access_token": "YOUR_PERSONAL_ACCESS_TOKEN"
    }

Optional configuration via environment

Set the following environment variables if adding github-config.json may present a challenge (when deploying on Heroku for example)

    github_client_id=YOUR_KEY
    github_client_secret=YOUR_SECRET
    github_callback_url=YOUR_CALLBACK_URL
    github_redirect_uri=YOUR_REDIRECT_URI