File tree Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,14 @@ script: bin/rake
6
6
rvm :
7
7
- 2.3.3
8
8
- 2.4.0
9
+ - 2.5.0
9
10
env :
11
+ - RAILS_VERSION='~> 5.1.0'
10
12
- RAILS_VERSION='~> 5.0.0'
11
13
- RAILS_VERSION='~> 4.2.8'
12
14
- RAILS_VERSION='4-2-stable'
13
15
- RAILS_VERSION='5-0-stable'
16
+ - RAILS_VERSION='5-1-stable'
14
17
matrix :
15
18
include :
16
19
- rvm : 2.2.3
Original file line number Diff line number Diff line change @@ -24,5 +24,5 @@ if version && !version.empty?
24
24
elsif RUBY_VERSION.to_f < 2.4
25
25
gem "rails", "~> 4.2.0"
26
26
else
27
- gem "rails", "~> 5.0 "
27
+ gem "rails", "~> 5.1 "
28
28
end
Original file line number Diff line number Diff line change @@ -7,5 +7,27 @@ class Railtie < ::Rails::Railtie
7
7
app . middleware . insert_after ActionDispatch ::DebugExceptions ,
8
8
::Kracken ::JsonApi ::PublicExceptions
9
9
end
10
+
11
+ config . before_initialize do |app |
12
+ app . config . filter_parameters += %i[
13
+ code
14
+ email
15
+ linked_accounts
16
+ raw_info
17
+ redirect_to
18
+ redirect_uri
19
+ state
20
+ token
21
+ ]
22
+ app . config . filter_redirect += [
23
+ "auth/radius" ,
24
+ "auth/token" ,
25
+ ]
26
+ end
27
+
28
+ # Allow apps to configure the provider in initializers
29
+ config . after_initialize do |app |
30
+ app . config . filter_redirect << URI ( Kracken . config . provider_url ) . host
31
+ end
10
32
end
11
33
end
You can’t perform that action at this time.
0 commit comments