{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/web-platform-compat/issues/21","labels_url":"https://api.github.com/repos/mozilla/web-platform-compat/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/web-platform-compat/issues/21/comments","events_url":"https://api.github.com/repos/mozilla/web-platform-compat/issues/21/events","html_url":"https://github.com/mozilla/web-platform-compat/pull/21","id":59363322,"number":21,"title":"Fix bug 1063165 - add authentication","user":{"login":"jwhitlock","id":286017,"avatar_url":"https://avatars.githubusercontent.com/u/286017?v=3","gravatar_id":"","url":"https://api.github.com/users/jwhitlock","html_url":"https://github.com/jwhitlock","followers_url":"https://api.github.com/users/jwhitlock/followers","following_url":"https://api.github.com/users/jwhitlock/following{/other_user}","gists_url":"https://api.github.com/users/jwhitlock/gists{/gist_id}","starred_url":"https://api.github.com/users/jwhitlock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwhitlock/subscriptions","organizations_url":"https://api.github.com/users/jwhitlock/orgs","repos_url":"https://api.github.com/users/jwhitlock/repos","events_url":"https://api.github.com/users/jwhitlock/events{/privacy}","received_events_url":"https://api.github.com/users/jwhitlock/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-28T22:45:27Z","updated_at":"2015-03-10T15:06:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mozilla/web-platform-compat/pulls/21","html_url":"https://github.com/mozilla/web-platform-compat/pull/21","diff_url":"https://github.com/mozilla/web-platform-compat/pull/21.diff","patch_url":"https://github.com/mozilla/web-platform-compat/pull/21.patch"},"body":"* Add django-allauth for social login framework\r\n* Add Firefox Account relier\r\n* Style base template for anon / logged-in state\r\n* Style sample allauth templates\r\n* Add autoenv sample config\r\n* Fix bug 1133066 - Better documentation, referencing autoenv sample config"},"comment":{"url":"https://api.github.com/repos/mozilla/web-platform-compat/issues/comments/78073054","html_url":"https://github.com/mozilla/web-platform-compat/pull/21#issuecomment-78073054","issue_url":"https://api.github.com/repos/mozilla/web-platform-compat/issues/21","id":78073054,"user":{"login":"jwhitlock","id":286017,"avatar_url":"https://avatars.githubusercontent.com/u/286017?v=3","gravatar_id":"","url":"https://api.github.com/users/jwhitlock","html_url":"https://github.com/jwhitlock","followers_url":"https://api.github.com/users/jwhitlock/followers","following_url":"https://api.github.com/users/jwhitlock/following{/other_user}","gists_url":"https://api.github.com/users/jwhitlock/gists{/gist_id}","starred_url":"https://api.github.com/users/jwhitlock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwhitlock/subscriptions","organizations_url":"https://api.github.com/users/jwhitlock/orgs","repos_url":"https://api.github.com/users/jwhitlock/repos","events_url":"https://api.github.com/users/jwhitlock/events{/privacy}","received_events_url":"https://api.github.com/users/jwhitlock/received_events","type":"User","site_admin":false},"created_at":"2015-03-10T15:06:18Z","updated_at":"2015-03-10T15:06:18Z","body":"It's super simple:\r\n\r\n1. Become a Mozilla employee\r\n2. Provision developer FxA credentials with the [FxA OAuth Dashboard](https://developer.mozilla.org/en-US/Firefox_Accounts_OAuth_Dashboard).  Endpoint will be something like `http://localhost:8000/accounts/fxa/login/callback/`\r\n3. Follow [allauth post-install instructions](http://django-allauth.readthedocs.org/en/latest/installation.html#post-installation) to add FxA credentials to database\r\n4. (Optional) Setup an email server.  I went with [Amazon SES](https://aws.amazon.com/ses/) for the server.\r\n5. Customize environment variables for the mail server and the [developer FxA endpoints](https://developer.mozilla.org/en-US/Firefox_Accounts#Firefox_Accounts_deployments), such as:\r\n```\r\nexport FXA_OAUTH_ENDPOINT=https://oauth-latest.dev.lcip.org/v1\r\nexport FXA_PROFILE_ENDPOINT=https://latest.dev.lcip.org/profile/v1\r\nexport EMAIL_BACKEND=django.core.mail.backends.console.EmailBackend\r\n```\r\nRestart your server with the new environment variables, and you're done!"}}