omniauth-realme 0.2.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +1 -1
- data/Gemfile +3 -2
- data/Gemfile.lock +33 -26
- data/lib/omniauth/realme/version.rb +1 -1
- data/lib/omniauth/strategies/realme.rb +9 -2
- data/omniauth-realme.gemspec +3 -3
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8060112188b147670893e730b9863215d65aba5aa4fffb7b63926313f3d5bf5d
|
4
|
+
data.tar.gz: 91765c295af1d0335b7b9678171c7a1395851400eded6baffa95044123fc1d89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc2446e4c6e2a02f573f618fe64b0ad1e26522e4d9d8d569d3751b521a3049587f971181d9735bbc9a46346d15a133df3caa6f0bdbf119927ae9bb31d53c11b7
|
7
|
+
data.tar.gz: 5d029213e28990467e04e9b37c9bc8814cb17ab5c347d4f09d07ed142810b245fe1db294081342577f857e52164da2e2fc44050c2989f4fee8432e540fc3e088
|
data/.github/workflows/ci.yml
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
omniauth-realme (
|
5
|
-
omniauth (~>
|
6
|
-
ruby-saml (~> 1.
|
7
|
-
uuid (~> 2.
|
4
|
+
omniauth-realme (2.1.0)
|
5
|
+
omniauth (~> 2.0.4)
|
6
|
+
ruby-saml (~> 1.13.0)
|
7
|
+
uuid (~> 2.3.9)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
@@ -12,18 +12,20 @@ GEM
|
|
12
12
|
ast (2.4.0)
|
13
13
|
byebug (11.1.3)
|
14
14
|
coderay (1.1.3)
|
15
|
-
diff-lcs (1.
|
15
|
+
diff-lcs (1.4.4)
|
16
16
|
hashie (4.1.0)
|
17
17
|
jaro_winkler (1.5.4)
|
18
18
|
macaddr (1.7.2)
|
19
19
|
systemu (~> 2.6.5)
|
20
20
|
method_source (1.0.0)
|
21
|
-
mini_portile2 (2.
|
22
|
-
nokogiri (1.
|
23
|
-
mini_portile2 (~> 2.
|
24
|
-
|
21
|
+
mini_portile2 (2.6.1)
|
22
|
+
nokogiri (1.12.5)
|
23
|
+
mini_portile2 (~> 2.6.1)
|
24
|
+
racc (~> 1.4)
|
25
|
+
omniauth (2.0.4)
|
25
26
|
hashie (>= 3.4.6)
|
26
27
|
rack (>= 1.6.2, < 3)
|
28
|
+
rack-protection
|
27
29
|
parallel (1.19.1)
|
28
30
|
parser (2.7.0.2)
|
29
31
|
ast (~> 2.4.0)
|
@@ -33,25 +35,28 @@ GEM
|
|
33
35
|
pry-byebug (3.9.0)
|
34
36
|
byebug (~> 11.0)
|
35
37
|
pry (~> 0.13.0)
|
38
|
+
racc (1.5.2)
|
36
39
|
rack (2.2.3)
|
40
|
+
rack-protection (2.1.0)
|
41
|
+
rack
|
37
42
|
rack-test (1.1.0)
|
38
43
|
rack (>= 1.0, < 3)
|
39
44
|
rainbow (3.0.0)
|
40
|
-
rake (
|
41
|
-
rexml (3.2.
|
42
|
-
rspec (3.
|
43
|
-
rspec-core (~> 3.
|
44
|
-
rspec-expectations (~> 3.
|
45
|
-
rspec-mocks (~> 3.
|
46
|
-
rspec-core (3.
|
47
|
-
rspec-support (~> 3.
|
48
|
-
rspec-expectations (3.
|
45
|
+
rake (13.0.6)
|
46
|
+
rexml (3.2.5)
|
47
|
+
rspec (3.10.0)
|
48
|
+
rspec-core (~> 3.10.0)
|
49
|
+
rspec-expectations (~> 3.10.0)
|
50
|
+
rspec-mocks (~> 3.10.0)
|
51
|
+
rspec-core (3.10.1)
|
52
|
+
rspec-support (~> 3.10.0)
|
53
|
+
rspec-expectations (3.10.1)
|
49
54
|
diff-lcs (>= 1.2.0, < 2.0)
|
50
|
-
rspec-support (~> 3.
|
51
|
-
rspec-mocks (3.
|
55
|
+
rspec-support (~> 3.10.0)
|
56
|
+
rspec-mocks (3.10.2)
|
52
57
|
diff-lcs (>= 1.2.0, < 2.0)
|
53
|
-
rspec-support (~> 3.
|
54
|
-
rspec-support (3.
|
58
|
+
rspec-support (~> 3.10.0)
|
59
|
+
rspec-support (3.10.2)
|
55
60
|
rubocop (0.80.0)
|
56
61
|
jaro_winkler (~> 1.5.1)
|
57
62
|
parallel (~> 1.10)
|
@@ -63,8 +68,9 @@ GEM
|
|
63
68
|
rubocop-rspec (1.38.1)
|
64
69
|
rubocop (>= 0.68.1)
|
65
70
|
ruby-progressbar (1.10.1)
|
66
|
-
ruby-saml (1.
|
67
|
-
nokogiri (>= 1.5
|
71
|
+
ruby-saml (1.13.0)
|
72
|
+
nokogiri (>= 1.10.5)
|
73
|
+
rexml
|
68
74
|
systemu (2.6.5)
|
69
75
|
unicode-display_width (1.6.1)
|
70
76
|
uuid (2.3.9)
|
@@ -75,11 +81,12 @@ PLATFORMS
|
|
75
81
|
|
76
82
|
DEPENDENCIES
|
77
83
|
bundler
|
84
|
+
nokogiri (>= 1.12.5)
|
78
85
|
omniauth-realme!
|
79
86
|
pry-byebug
|
80
87
|
rack-test
|
81
|
-
rake (~>
|
82
|
-
rspec (~> 3.0)
|
88
|
+
rake (~> 13.0.6)
|
89
|
+
rspec (~> 3.10.0)
|
83
90
|
rubocop
|
84
91
|
rubocop-rspec
|
85
92
|
|
@@ -54,7 +54,7 @@ module OmniAuth
|
|
54
54
|
# application and `#callback_phase` below is executed.
|
55
55
|
#
|
56
56
|
if request.params['relay_state']
|
57
|
-
if request.params['relay_state'].length > MAX_LENGTH_OF_RELAY_STATE
|
57
|
+
if limit_relay_state? && request.params['relay_state'].length > MAX_LENGTH_OF_RELAY_STATE
|
58
58
|
ex = RelayStateTooLongError.new('RelayState exceeds SAML spec max length of 80 bytes')
|
59
59
|
|
60
60
|
# fail!() returns a rack response which this callback must also
|
@@ -108,7 +108,8 @@ module OmniAuth
|
|
108
108
|
if response.is_valid? # rubocop:disable Style/IfInsideElse
|
109
109
|
@uid = response.nameid
|
110
110
|
else
|
111
|
-
|
111
|
+
msg = response.status_message ? response.status_message.strip : ''
|
112
|
+
ex = create_exception_for(status_code: response.status_code, message: msg)
|
112
113
|
|
113
114
|
# fail!() returns a rack response which this callback must also
|
114
115
|
# return if OmniAuth error handling is to work correctly.
|
@@ -251,6 +252,12 @@ module OmniAuth
|
|
251
252
|
options.fetch('legacy_rails_session_behaviour_enabled', true)
|
252
253
|
end
|
253
254
|
|
255
|
+
# Many providers including RealMe don't limit the RelayState option
|
256
|
+
# so allow the limit to be disabled
|
257
|
+
def limit_relay_state?
|
258
|
+
options.fetch('limit_relay_state', true)
|
259
|
+
end
|
260
|
+
|
254
261
|
def default_error_messages_for_rails_session(error)
|
255
262
|
case error
|
256
263
|
when /Timeout/
|
data/omniauth-realme.gemspec
CHANGED
@@ -28,9 +28,9 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
29
|
spec.require_paths = ['lib']
|
30
30
|
|
31
|
-
spec.add_dependency 'omniauth', '~>
|
32
|
-
spec.add_dependency 'ruby-saml', '~> 1.
|
33
|
-
spec.add_dependency 'uuid', '~> 2.
|
31
|
+
spec.add_dependency 'omniauth', '~> 2.0.4'
|
32
|
+
spec.add_dependency 'ruby-saml', '~> 1.13.0'
|
33
|
+
spec.add_dependency 'uuid', '~> 2.3.9'
|
34
34
|
|
35
35
|
spec.add_development_dependency 'bundler'
|
36
36
|
spec.add_development_dependency 'pry-byebug'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-realme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DigitalNZ
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.0.4
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 2.0.4
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: ruby-saml
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 1.13.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 1.13.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: uuid
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 2.3.9
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 2.3.9
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -181,7 +181,7 @@ licenses:
|
|
181
181
|
metadata:
|
182
182
|
homepage_uri: https://github.com/omniauth/omniauth
|
183
183
|
source_code_uri: https://github.com/omniauth/omniauth
|
184
|
-
post_install_message:
|
184
|
+
post_install_message:
|
185
185
|
rdoc_options: []
|
186
186
|
require_paths:
|
187
187
|
- lib
|
@@ -197,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
197
197
|
version: '0'
|
198
198
|
requirements: []
|
199
199
|
rubygems_version: 3.0.3
|
200
|
-
signing_key:
|
200
|
+
signing_key:
|
201
201
|
specification_version: 4
|
202
202
|
summary: Omniauth strategy for New Zealands secure online identity verification service.
|
203
203
|
test_files: []
|