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

Cannot integrate with omniauth-facebook #729

Closed
emman27 opened this issue Sep 8, 2016 · 3 comments
Closed

Cannot integrate with omniauth-facebook #729

emman27 opened this issue Sep 8, 2016 · 3 comments

Comments

@emman27
Copy link

emman27 commented Sep 8, 2016

Hi,

I'm having trouble integrating with omniauth-facebook.

I've managed to set both up correctly - I can create users using omniauth-facebook, I can also create users via POST /auth. Signing in users through POST /auth/sign_in is fine too. However, for Facebook users, I'm unable to retrieve the tokens I need to continue their verification. The headers from the call to /auth/facebook/callback don't contain any token / client info I can use for my next request

@emman27
Copy link
Author

emman27 commented Sep 9, 2016

Solved using manually created headers!

@emman27 emman27 closed this as completed Sep 9, 2016
@waritsan
Copy link

@emman27 Could you please show me an example how you manually created the headers? I have the same issue but can't seem to figure it out.

@emman27
Copy link
Author

emman27 commented Sep 19, 2016

In your controller which catches the request, add this line
response.headers.merge! @user.create_new_auth_token

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