{"action":"created","issue":{"url":"https://api.github.com/repos/DoSomething/phoenix/issues/4526","labels_url":"https://api.github.com/repos/DoSomething/phoenix/issues/4526/labels{/name}","comments_url":"https://api.github.com/repos/DoSomething/phoenix/issues/4526/comments","events_url":"https://api.github.com/repos/DoSomething/phoenix/issues/4526/events","html_url":"https://github.com/DoSomething/phoenix/issues/4526","id":79147667,"number":4526,"title":"Implement external authentication with Northstar","user":{"login":"aaronschachter","id":1236811,"avatar_url":"https://avatars.githubusercontent.com/u/1236811?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronschachter","html_url":"https://github.com/aaronschachter","followers_url":"https://api.github.com/users/aaronschachter/followers","following_url":"https://api.github.com/users/aaronschachter/following{/other_user}","gists_url":"https://api.github.com/users/aaronschachter/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronschachter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronschachter/subscriptions","organizations_url":"https://api.github.com/users/aaronschachter/orgs","repos_url":"https://api.github.com/users/aaronschachter/repos","events_url":"https://api.github.com/users/aaronschachter/events{/privacy}","received_events_url":"https://api.github.com/users/aaronschachter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DoSomething/phoenix/labels/%23api","name":"#api","color":"bfdadc"},{"url":"https://api.github.com/repos/DoSomething/phoenix/labels/%23mobile-app","name":"#mobile-app","color":"bfdadc"},{"url":"https://api.github.com/repos/DoSomething/phoenix/labels/%23user-profile","name":"#user-profile","color":"bfdadc"},{"url":"https://api.github.com/repos/DoSomething/phoenix/labels/@bender","name":"@bender","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-05-21T20:22:53Z","updated_at":"2015-09-17T13:59:47Z","closed_at":null,"body":"In looking to build the [\"Change Email\" screen in the iOS app](https://github.com/DoSomething/LetsDoThis-iOS/issues/21), I've run into a pickle.  The PUT to the Northstar User works fine and changes the email.  The Drupal User is not updated.\r\n\r\nThe opposite situation is true as well, if I update my email within Drupal, my Northstar email is not updated.\r\n\r\nWe'll run into this issue with Mobile Number and Password as well.\r\n\r\nNot sure what best course of action is, but I believe this is functionality that @sergii-tkachenko has gotten working for the DS Canada and DS UK sites, by building the [External Auth module](https://github.com/DoSomething/drupal-external-auth), which we've talked about releasing as a contrib module on drupal.org. The module queries a third party service in order to authenticate, and sync the Drupal User with the authenticated user returned in the response.\r\n\r\nOne approach is that we implement the module for connecting to Northstar, to avoid building out custom Services calls (Northstar doing a PUT on a Drupal User, and vice versa) that would seem to duplicate the work @sergii-tkachenko has already gotten in place.\r\n\r\nDS Canada implementation: https://github.com/DoSomething/dosomething/tree/dev/lib/modules/dosomething/dosomething_canada/includes\r\n\r\nDS UK implementation: \r\nhttps://github.com/DoSomething/dosomething/tree/dev/lib/modules/dosomething/dosomething_uk/includes\r\n\r\ncc @jonuy @angaither @DFurnes "},"comment":{"url":"https://api.github.com/repos/DoSomething/phoenix/issues/comments/141095358","html_url":"https://github.com/DoSomething/phoenix/issues/4526#issuecomment-141095358","issue_url":"https://api.github.com/repos/DoSomething/phoenix/issues/4526","id":141095358,"user":{"login":"angaither","id":645205,"avatar_url":"https://avatars.githubusercontent.com/u/645205?v=3","gravatar_id":"","url":"https://api.github.com/users/angaither","html_url":"https://github.com/angaither","followers_url":"https://api.github.com/users/angaither/followers","following_url":"https://api.github.com/users/angaither/following{/other_user}","gists_url":"https://api.github.com/users/angaither/gists{/gist_id}","starred_url":"https://api.github.com/users/angaither/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angaither/subscriptions","organizations_url":"https://api.github.com/users/angaither/orgs","repos_url":"https://api.github.com/users/angaither/repos","events_url":"https://api.github.com/users/angaither/events{/privacy}","received_events_url":"https://api.github.com/users/angaither/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T13:59:47Z","updated_at":"2015-09-17T13:59:47Z","body":"cc @DFurnes "}}