summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorTimothy Andrew <mail@timothyandrew.net>2017-06-07 08:45:34 +0000
committerTimothy Andrew <mail@timothyandrew.net>2017-07-03 16:25:10 +0000
commit5b649ac64dc2a987e2bede544dd13c1fab2d55a4 (patch)
treef60fc3328d8205cdfd4d296152dae97734c517f9 /spec
parentc8eef2d2a62f6ac7304c8ab4d50282613e21ec8a (diff)
downloadgitlab-ce-5b649ac64dc2a987e2bede544dd13c1fab2d55a4.tar.gz
Implement "remember me" for OAuth-based login.
- 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.
Diffstat (limited to 'spec')
0 files changed, 0 insertions, 0 deletions