{"action":"closed","issue":{"url":"https://api.github.com/repos/alerta/angular-alerta-webui/issues/18","labels_url":"https://api.github.com/repos/alerta/angular-alerta-webui/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/alerta/angular-alerta-webui/issues/18/comments","events_url":"https://api.github.com/repos/alerta/angular-alerta-webui/issues/18/events","html_url":"https://github.com/alerta/angular-alerta-webui/issues/18","id":88003067,"number":18,"title":"Can't get the web ui to work with alerta and github authentication","user":{"login":"tdi","id":376847,"avatar_url":"https://avatars.githubusercontent.com/u/376847?v=3","gravatar_id":"","url":"https://api.github.com/users/tdi","html_url":"https://github.com/tdi","followers_url":"https://api.github.com/users/tdi/followers","following_url":"https://api.github.com/users/tdi/following{/other_user}","gists_url":"https://api.github.com/users/tdi/gists{/gist_id}","starred_url":"https://api.github.com/users/tdi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdi/subscriptions","organizations_url":"https://api.github.com/users/tdi/orgs","repos_url":"https://api.github.com/users/tdi/repos","events_url":"https://api.github.com/users/tdi/events{/privacy}","received_events_url":"https://api.github.com/users/tdi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/alerta/angular-alerta-webui/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-13T13:08:02Z","updated_at":"2015-06-15T13:41:45Z","closed_at":"2015-06-15T13:41:45Z","body":"I have alerta 4.4.X running with the following config:\r\n    \r\n    DEBUG=True\r\n     ...\r\n    AUTH_REQUIRED = True\r\n     ...\r\n    OAUTH2_CLIENT_ID = 'client_id_from_github'  # Google or GitHub OAuth2 client ID and secret\r\n    OAUTH2_CLIENT_SECRET = 'xxxxx'\r\n    ALLOWED_GITHUB_ORGS = ['*']\r\n\r\n\r\nIn web's `config.js`:\r\n\r\n     ...\r\n     'provider'    : \"github\", // google, github, twitter or basic\r\n     'client_id'   : \"client_id_from_gihub\"\r\n\r\nWhen I click Login in alerta webui I get a js alert dialog (I substituted my real domain with MYDOMAIN), alertad running on port 8080, web on 8080:\r\n\r\n      {\"data\":null,\"status\":0,\"config\":{\"method\":\"POST\",\"transformRequest\":[null],\"transformResponse\":[null],\"withCredentials\":true,\"url\":\"http://MYDOMAIN:8080/auth/github\",\"data\":{\"code\":\"e15b93d78dbfeaa87dcc\",\"clientId\":\"client_id_from_github\",\"redirectUri\":\"http://MYDOMAIN:8000\"},\"headers\":{\"Accept\":\"application/json, text/plain, */*\",\"Content-Type\":\"application/json;charset=utf-8\"}},\"statusText\":\"\"}\r\n\r\n\r\n\r\n\r\n    "}}