Commit graph

18 commits

Author SHA1 Message Date
Jedidiah
3140006355 Add missing classes to omniauth remember-me checkbox and add correct font-size 2017-09-14 17:58:15 +00:00
Simon Knox
a4c6a03b93 add padding above Remember Me for social login
also fix case
2017-07-20 15:02:16 +10:00
Timothy Andrew
8fa08ea3cd Implement review comments for !11963 from @adamniedzielski.
- Change double quotes to single quotes.
- Why is `OmniAuth.config.full_host` being reassigned in the integration test?
- Use `map` over `map!` to avoid `dup` in the `gitlab:info` rake task
- Other minor changes
2017-07-06 06:30:07 +00:00
Timothy Andrew
d705a2548c Move OAuth "remember me" javascript logic into a class. 2017-07-06 06:30:05 +00:00
Timothy Andrew
e936db963e Add integration tests around OAuth login.
- There was previously a test for `saml` login in `login_spec`, but this didn't
  seem to be passing. A lot of things didn't seem right here, and I suspect that
  this test hasn't been running. I'll investigate this further.

- It took almost a whole working day to figure out this line:

    OmniAuth.config.full_host = ->(request) { request['REQUEST_URI'].sub(request['REQUEST_PATH'], '') }

  As always, it's obvious in retrospect, but it took some digging to figure out
  tests were failing and returning 404s during the callback phase.

- Test all OAuth providers - github, twitter, bitbucket, gitlab, google, and facebook
2017-07-06 06:30:05 +00:00
Timothy Andrew
633793cf47 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.
2017-07-06 06:29:58 +00:00
Bryce Johnson
fbd09871ca Remove turbolinks. 2017-02-02 14:03:12 -05:00
Kushal Pandya
dd5ffd9ca6 HAMLLint: Fix ImplicitDiv offences 2016-12-31 11:43:08 +05:30
Bryce Johnson
673c23dd7e Unbreak all the tests relying on one login-box. 2016-10-15 08:28:52 +02:00
Bryce Johnson
1dd826d4aa Make UX upgrades to SignIn/Register views.
- Tab between register and sign in forms
- Add individual input validation error messages
- Validate username
- Update many styles for all login-box forms
2016-10-15 08:27:21 +02:00
Connor Shea
602fe11191
Remove provider path, replace with dynamic path. 2016-08-03 11:50:38 -06:00
Connor Shea
e8c6f119cd
Add an oauth provider path helper.
The helper constructs the path for a given oauth provider since Devise 4.0 deprecated passing the provider to the omniauth authentication path.

Fixes #18110.
2016-08-03 11:50:29 -06:00
Andrei Gliga
28da3a88de show only the eanbled oauth providers 2016-05-12 13:44:46 +03:00
Douwe Maan
70a3c165a9 Allow custom label to be set for authentication providers. 2015-07-23 15:20:12 +02:00
Douwe Maan
571ba5a7fe Protect OmniAuth request phase against CSRF. 2015-04-24 17:03:18 +02:00
Fotis Gimian
cbe9654abe Disable turbolinks for omniauth link to avoid rendering problems 2015-03-31 21:04:47 +11:00
Dmitriy Zaporozhets
777c119fd2 Restyle oauth accounts at profile page and add ability to unlink account 2015-03-21 17:46:00 -07:00
Aaron Stone
252ee4e7e5 Improve login screen when only OmniAuth providers are enabled
Avoids an empty Sign in box when signup_enabled? is false, and avoids
showing "No authentication methods configured" unless there really are none.

OmniAuth signin gets its own file for consistency with signin and signup and LDAP.
2015-02-13 23:49:12 -08:00