mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-25 17:24:51 +08:00
Add omniauth-rails_csrf_protection gem
Close SCI-3588
This commit is contained in:
parent
971f52b4b0
commit
6546bd1532
2 changed files with 2 additions and 1 deletions
1
Gemfile
1
Gemfile
|
@ -24,6 +24,7 @@ gem 'yomu'
|
|||
gem 'doorkeeper', '>= 4.6'
|
||||
gem 'omniauth'
|
||||
gem 'omniauth-linkedin-oauth2'
|
||||
gem 'omniauth-rails_csrf_protection', '~> 0.1'
|
||||
|
||||
# Gems for API implementation
|
||||
gem 'active_model_serializers', '~> 0.10.7'
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
<%- if Rails.configuration.x.enable_user_registration && Rails.configuration.x.linkedin_signin_enabled && @oauth_authorize != true %>
|
||||
<%- if devise_mapping.omniauthable? && resource_class.omniauth_providers.any? && controller_name != 'registrations' %>
|
||||
<%= link_to omniauth_authorize_path(resource_name, :linkedin), :title => "Sign in with LinkedIn" do %>
|
||||
<%= link_to omniauth_authorize_path(resource_name, :linkedin), method: :post :title => "Sign in with LinkedIn" do %>
|
||||
<%= image_tag('linkedin/Sign-in-Large---Default.png',
|
||||
class: 'linkedin-signin-button',
|
||||
alt: "Sign in with LinkedIn",
|
||||
|
|
Loading…
Reference in a new issue