Sha256: 2ba5685504575255466ae2bf10a58d3c8df1f0bff97ef1f529dc11f028081992
Contents?: true
Size: 440 Bytes
Versions: 3
Compression:
Stored size: 440 Bytes
Contents
class Auth0Controller < ApplicationController def callback # example request.env['omniauth.auth'] in https://github.com/auth0/omniauth-auth0#auth-hash # id_token = session[:userinfo]['credentials']['id_token'] # store the user profile in session and redirect to root session[:userinfo] = request.env['omniauth.auth'] redirect_to '/dashboard' end def failure @error_msg = request.params['message'] end end
Version data entries
3 entries across 3 versions & 1 rubygems