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

session variable is empty #55

Closed
yamarkz opened this issue Jul 22, 2020 · 4 comments
Closed

session variable is empty #55

yamarkz opened this issue Jul 22, 2020 · 4 comments

Comments

@yamarkz
Copy link

yamarkz commented Jul 22, 2020

I'm trying to use this Gem in Rails API with devise_token_auth, but it didn't work.

It seems that session variable is empty. In the case of Google or Facebook, can see the value in the session variable.

Is this a bug in Gem? I would like to know if there is a way to fix it.

Some people seem to have encountered similar cases. ref

I'm trying this one too. ref

@gryphonandrook
Copy link

I'm having this same issue. Typically when I do a callback from Google or Facebook, I check to see if the user already has a session and if they do, I'll add the login to their user. If they don't, I'll look to see if they are already a user, if so, I log them in, if not I create a user for them and sign them in.

Can't seem to get anything to happen as it seems the call back gets a whole new session which is discarded as soon as I redirect to another page and it brings the original session back on the new page.

@Texicitys
Copy link

Texicitys commented Oct 8, 2020

Same here.. Try to put protect_from_forgery :except => [:apple] on the top of your Users::OmniauthCallbacksController. It solved the problem for me.

@nov
Copy link
Collaborator

nov commented Sep 27, 2022

if you are using cookies, set SameSite=none
since Apple uses POST for callback, cookies aren't sent by default.

@nov nov closed this as completed Sep 27, 2022
@salzig
Copy link

salzig commented May 31, 2023

Instead of opening up the session to potential security risks, we may merge #107 and allow the nonce to be stored in its own encypted cookie?

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

5 participants