{"action":"opened","issue":{"url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/827","repository_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth","labels_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/827/labels{/name}","comments_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/827/comments","events_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/827/events","html_url":"https://github.com/lynndylanhurley/devise_token_auth/issues/827","id":204794787,"number":827,"title":"OmniAuth authentication with an Angular 2 front end application.","user":{"login":"91sticker","id":4902545,"avatar_url":"https://avatars.githubusercontent.com/u/4902545?v=3","gravatar_id":"","url":"https://api.github.com/users/91sticker","html_url":"https://github.com/91sticker","followers_url":"https://api.github.com/users/91sticker/followers","following_url":"https://api.github.com/users/91sticker/following{/other_user}","gists_url":"https://api.github.com/users/91sticker/gists{/gist_id}","starred_url":"https://api.github.com/users/91sticker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/91sticker/subscriptions","organizations_url":"https://api.github.com/users/91sticker/orgs","repos_url":"https://api.github.com/users/91sticker/repos","events_url":"https://api.github.com/users/91sticker/events{/privacy}","received_events_url":"https://api.github.com/users/91sticker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-02T06:39:51Z","updated_at":"2017-02-02T06:39:51Z","closed_at":null,"body":"This might not be an issue its more of a guidance I need regarding the apporoach I am using.\r\nI have a scenario consisting of an angular 2 application with a rails api where I have been able to implement token based authentication using **angular2-token** package with **devise_token_auth** gem. The part m confused about is how do I use **devise_token_auth** to correctly implement omniauth-facebook's authentication through my angular 2 application having a rails API. I have seen the angular code snippet about it provided in the gem's documentation. \r\nUsing ng2-facebook-sdk I have been able to login via facebook and get a cookie as a response on the front end. However the part that confuses me is how to send that information I received in the cookie on my front end to the rails api's ''/auth/facebook/callback\" endpoint.\r\n\r\nPlease let me know if this is the correct approach or if I am missing something. If this has been answered I apologize I didnt come across any material that addresses this issue.\r\nThanks in advance.\r\n\r\nI have also posted a question on stackoverflow:\r\nhttp://stackoverflow.com/questions/41979919/unable-to-authenticate-my-angular-2-app-having-a-rails-api-as-backend-with-faceb"}}
{"actor":{"display_login":"91sticker"}}