• Timothy Andrew's avatar
    Implement "remember me" for OAuth-based login. · 5b649ac6
    Timothy Andrew authored
    - Pass a `remember_me` query parameter along with the initial OAuth request, and
      pick this parameter up during the omniauth callback from
      request.env['omniauth.params']`
    
    - For 2FA-based login, copy the `remember_me` param from `omniauth.params` to
      `params`, which the 2FA process will pick up.
    
    - For non-2FA-based login, simply call the `remember_me` devise method to set
      the session cookie.
    5b649ac6
omniauth_callbacks_controller.rb 4.61 KB