Add omniauth-rails_csrf_protection gem

Close SCI-3588
This commit is contained in:
Jure Grabnar 2019-07-31 16:05:06 +02:00
parent 971f52b4b0
commit 6546bd1532
2 changed files with 2 additions and 1 deletions

View file

@ -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'

View file

@ -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",