auth0-samples / auth0-rubyonrails-sample

Auth0 Integration Samples for Ruby on Rails Web Applications

Home Page:https://auth0.com/docs/quickstart/webapp/rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rails 6 session not persisting Omniauth hash

simpsonjulian opened this issue · comments

Hi there, I'm trying to get this sample working for Rails 6.

I can authenticate via Auth0 and the callback is invoked with a payload, but the Rails session isn't updating:

session[:userinfo] = request.env['omniauth.auth']

is executed, but when the browser gets redirected, there's no session.

I've been looking at the PR from @davidpatrick, but no idea if this behaviour is expected or not.

Any ideas? Thanks.

Update: I tried the sample and it worked beautifully, so I'll just wait until #47 is merged. Thanks.