Skip to content

Commit

Permalink
omniauthのsecurity alertを解決した
Browse files Browse the repository at this point in the history
  • Loading branch information
wai-doi committed Feb 26, 2020
1 parent de2e5cb commit d38028f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ gem 'material_icons'
gem 'materialize-sass'
gem 'omniauth'
gem 'omniauth-google-oauth2'
gem 'omniauth-rails_csrf_protection'
gem 'pg'
gem 'puma'
gem 'rails-i18n'
Expand Down
4 changes: 4 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ GEM
omniauth-oauth2 (1.6.0)
oauth2 (~> 1.1)
omniauth (~> 1.9)
omniauth-rails_csrf_protection (0.1.2)
actionpack (>= 4.2)
omniauth (>= 1.3.1)
orm_adapter (0.5.0)
parallel (1.19.1)
parser (2.7.0.0)
Expand Down Expand Up @@ -393,6 +396,7 @@ DEPENDENCIES
materialize-sass
omniauth
omniauth-google-oauth2
omniauth-rails_csrf_protection
pg
pry-byebug
pry-doc
Expand Down
2 changes: 1 addition & 1 deletion app/views/devise/shared/_links.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
- resource_class.omniauth_providers.each do |provider|
.signin
p @esm.co.jpのアカウントでサインインしてください。
= link_to image_tag('btn_google_signin.png', width: 300), omniauth_authorize_path(resource_name, provider), id: 'signin-link'
= link_to image_tag('btn_google_signin.png', width: 300), omniauth_authorize_path(resource_name, provider), method: :post, id: 'signin-link'

0 comments on commit d38028f

Please sign in to comment.