This repository was archived by the owner on Mar 23, 2023. It is now read-only.
File tree 6 files changed +22
-3
lines changed
6 files changed +22
-3
lines changed Original file line number Diff line number Diff line change
1
+ # To get started with Dependabot version updates, you'll need to specify which
2
+ # package ecosystems to update and where the package manifests are located.
3
+ # Please see the documentation for all configuration options:
4
+ # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5
+
6
+ version : 2
7
+ updates :
8
+ - package-ecosystem : " bundler" # See documentation for possible values
9
+ directory : " /" # Location of package manifests
10
+ schedule :
11
+ interval : " daily"
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ gem 'meta-tags'
31
31
gem 'mini_racer'
32
32
gem 'nested_form'
33
33
gem 'omniauth-slack'
34
+ gem 'omniauth-rails_csrf_protection'
34
35
gem 'paranoia' , '~> 2.2'
35
36
gem 'paperclip' , '~> 5.2.0'
36
37
gem 'pg'
Original file line number Diff line number Diff line change 364
364
omniauth-oauth2 (1.3.1 )
365
365
oauth2 (~> 1.0 )
366
366
omniauth (~> 1.2 )
367
+ omniauth-rails_csrf_protection (0.1.2 )
368
+ actionpack (>= 4.2 )
369
+ omniauth (>= 1.3.1 )
367
370
omniauth-slack (2.3.0 )
368
371
omniauth-oauth2 (~> 1.3.1 )
369
372
orm_adapter (0.5.0 )
@@ -634,6 +637,7 @@ DEPENDENCIES
634
637
meta-tags
635
638
mini_racer
636
639
nested_form
640
+ omniauth-rails_csrf_protection
637
641
omniauth-slack
638
642
overcommit
639
643
paperclip (~> 5.2.0 )
Original file line number Diff line number Diff line change 1
1
<%- if devise_mapping.omniauthable? %>
2
2
<%- resource_class.omniauth_providers.each do |provider| %>
3
- <%= link_to(user_slack_omniauth_authorize_path) do %>
3
+ <%= link_to(user_slack_omniauth_authorize_path, method: :post ) do %>
4
4
<!-- "Sign in with #{OmniAuth::Utils.camelize(provider)}" -->
5
5
<%= image_tag ( 'https://platform.slack-edge.com/img/sign_in_with_slack.png' ,
6
6
alt : 'Sign in with Slack' ,
Original file line number Diff line number Diff line change
1
+ # Configure OmniAuth to only allow requests from :post and :get
2
+ OmniAuth . config . allowed_request_methods = [ :post , :get ]
3
+
1
4
if !AppSettings . slack_app_client_id . blank? && !AppSettings . slack_app_client_secret . blank?
2
5
Rails . application . config . middleware . use ( OmniAuth ::Builder ) do
3
6
provider :slack ,
Original file line number Diff line number Diff line change 13
13
14
14
response '200' , 'Return verified users' do
15
15
schema '$ref' => '#/components/schemas/users'
16
-
16
+
17
17
let! ( :user ) { create ( :user ) }
18
18
let! ( :api_key ) { create ( :api_key , user : user ) }
19
19
let! ( :user_1 ) { create ( :user ) }
90
90
schema schema '$ref' => '#/components/schemas/users'
91
91
92
92
let! ( :user ) { create ( :user ) }
93
- let! ( :member ) { create ( :user ) }
93
+ let! ( :member ) { create ( :user , first_name : "find-user-test" ) }
94
94
let! ( :api_key ) { create ( :api_key , user : user ) }
95
95
let! ( "query[first_name]" ) { member . first_name }
96
96
let ( :Authorization ) { 'Bearer ' + api_key . access_token }
You can’t perform that action at this time.
0 commit comments