Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

omniauth-facebook authentication with an Angular 2 front end application. #827

Closed
91sticker opened this issue Feb 2, 2017 · 1 comment
Closed

Comments

@91sticker
Copy link

This might not be an issue its more of a guidance I need regarding the apporoach I am using.
I 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.
Using 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.

Please 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.
Thanks in advance.

I have also posted a question on stackoverflow:
http://stackoverflow.com/questions/41979919/unable-to-authenticate-my-angular-2-app-having-a-rails-api-as-backend-with-faceb

@91sticker 91sticker changed the title OmniAuth authentication with an Angular 2 front end application. omniauth-facebook authentication with an Angular 2 front end application. Feb 2, 2017
@zachfeldman
Copy link
Contributor

@91sticker try super-ing into the methods in the overrides controllers to see why the resource_class isn't being found. Please reopen if you're still having an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants