ruby-samlnechotech 0.7.30 → 0.7.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1226e318442ac535644174621e2d6591400be9e0
4
- data.tar.gz: be9918234ebc6e3870533e9a8813a100ddf35638
3
+ metadata.gz: 3bf49be077e9d389a9fa0dc4952d2197d5983149
4
+ data.tar.gz: 83da3b834385465d0a1a3cd68ae3f23c9bc1f093
5
5
  SHA512:
6
- metadata.gz: 5d8b2f03744e5c053835ab9cb8b047915c486061437da2d5d2c5a61f011a97a6e53b71302ae7093e9a2060bc51426b8fab5f9e86dda675f945b5c9b3e7d7a027
7
- data.tar.gz: e516124e63f6360ae86ac92e9e8781ae63556a6bb96a6b2b5337be72f4064c0680f187a22fa3f6e8b5cd2b4ed04c557aab6537669c39709c0f318d57b6ea71b3
6
+ metadata.gz: f8c0ef6658fd72a46c1282b04f57b90477062e74b4c8a93436bd0d7b5d4f208525837b2012f850fffb8d38cda2aa8ab46d8cc90bf586dcde5d22bc8137a8c639
7
+ data.tar.gz: 0484b14583a4c3f7e8ed0f9cd952c8908a4f34edd2bbfa74b3bd05092a838ae0ddd4631b107a18def478a56af7fd5ff9ad2beba34bda4b210cea9dc04d978ab0
@@ -95,12 +95,22 @@ module Onelogin
95
95
  parse_time(node, "SessionNotOnOrAfter")
96
96
  end
97
97
  end
98
-
98
+
99
99
  # Checks the status of the response for a "Success" code
100
+ # (nechotech: ...or a "NoPassive" secondary status code)
100
101
  def success?
101
102
  @status_code ||= begin
102
103
  node = REXML::XPath.first(document, "/p:Response/p:Status/p:StatusCode", { "p" => PROTOCOL, "a" => ASSERTION })
103
- node.attributes["Value"] == "urn:oasis:names:tc:SAML:2.0:status:Success"
104
+ primary_status = node.attributes["Value"]
105
+ case primary_status
106
+ when "urn:oasis:names:tc:SAML:2.0:status:Success"
107
+ true
108
+ when "urn:oasis:names:tc:SAML:2.0:status:Responder"
109
+ secondary_status = node.elements[1].attributes["Value"]
110
+ secondary_status == "urn:oasis:names:tc:SAML:2.0:status:NoPassive"
111
+ else
112
+ false
113
+ end
104
114
  end
105
115
  end
106
116
 
@@ -1,5 +1,5 @@
1
1
  module Onelogin
2
2
  module Saml
3
- VERSION = '0.7.30'
3
+ VERSION = '0.7.31'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-samlnechotech
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.30
4
+ version: 0.7.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - OneLogin LLC, beekermememe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-13 00:00:00.000000000 Z
11
+ date: 2013-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: canonix