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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 46aeccbc5129dddb0f783c1c48a6e9cfd4afaa9101b139ba0a9224e6ef1f3b00
4
- data.tar.gz: dbf07ef67c3aa012bc4f7b06f072992f17283f7d2a8786f2a727d003aeae90c5
3
+ metadata.gz: 8060112188b147670893e730b9863215d65aba5aa4fffb7b63926313f3d5bf5d
4
+ data.tar.gz: 91765c295af1d0335b7b9678171c7a1395851400eded6baffa95044123fc1d89
5
5
  SHA512:
6
- metadata.gz: 3dd9674eb32527ead0968f5d89bcbf66e938d45df9ecc6e15a8567a36ab011a2047a39efbd7a44e2b0d219f3fc5885d1baa6ee0a8970e966530b67426bb0a608
7
- data.tar.gz: 7d2e03de4151e52d43c6f56d393bb9d6d3b6b52a695b6abbba9a71f4f8c2d287dc4ce9c5352eb915bcdfdf9d3b072305e2084acc304501252cb286c2d1315d21
6
+ metadata.gz: dc2446e4c6e2a02f573f618fe64b0ad1e26522e4d9d8d569d3751b521a3049587f971181d9735bbc9a46346d15a133df3caa6f0bdbf119927ae9bb31d53c11b7
7
+ data.tar.gz: 5d029213e28990467e04e9b37c9bc8814cb17ab5c347d4f09d07ed142810b245fe1db294081342577f857e52164da2e2fc44050c2989f4fee8432e540fc3e088
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- omniauth-realme (2.0.0)
4
+ omniauth-realme (2.1.0)
5
5
  omniauth (~> 2.0.4)
6
6
  ruby-saml (~> 1.13.0)
7
7
  uuid (~> 2.3.9)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module Realme
5
- VERSION = '2.0.0'
5
+ VERSION = '2.1.0'
6
6
  end
7
7
  end
@@ -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/
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-realme
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - DigitalNZ