2016-12-23 04:37:12 -05:00
|
|
|
.omniauth-container
|
2016-09-09 08:21:00 -04:00
|
|
|
%p
|
2014-08-11 14:06:15 -04:00
|
|
|
%span.light
|
2016-09-09 08:21:00 -04:00
|
|
|
Sign in with
|
|
|
|
- providers = enabled_button_based_providers
|
|
|
|
- providers.each do |provider|
|
|
|
|
%span.light
|
|
|
|
- has_icon = provider_has_icon?(provider)
|
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-06-14 00:30:07 -04:00
|
|
|
= link_to provider_image_tag(provider), omniauth_authorize_path(:user, provider), method: :post, class: 'oauth-login' + (has_icon ? ' oauth-image-link' : ' btn'), id: "oauth-login-#{provider}"
|
2017-06-07 04:45:34 -04:00
|
|
|
%fieldset
|
|
|
|
= check_box_tag :remember_me
|
|
|
|
= label_tag :remember_me, "Remember Me"
|