omniauth-realme 2.0.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/Gemfile.lock +1 -1
- data/lib/omniauth/realme/version.rb +1 -1
- data/lib/omniauth/strategies/realme.rb +7 -1
- metadata +1 -1
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/Gemfile.lock
CHANGED
@@ -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
|
@@ -252,6 +252,12 @@ module OmniAuth
|
|
252
252
|
options.fetch('legacy_rails_session_behaviour_enabled', true)
|
253
253
|
end
|
254
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
|
+
|
255
261
|
def default_error_messages_for_rails_session(error)
|
256
262
|
case error
|
257
263
|
when /Timeout/
|