Method: AuthenticationController#auth_callback
- Defined in:
- app/controllers/authentication_controller.rb
#auth_callback ⇒ Object
get /auth/:provider/callback
30 31 32 33 34 35 36 |
# File 'app/controllers/authentication_controller.rb', line 30 def auth_callback data = request.env['omniauth.auth'] user = @foreign_site.authenticate(data, tracking_for_entity) create_token_for_user(user) if user.allow_login? redirect_to my_path end |