libsaml 2.11.0 → 2.11.1

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
  SHA1:
3
- metadata.gz: 2078d68d5a5383f058306a319afd8ada9630bd49
4
- data.tar.gz: 47da1b1835a17505893d2d68d24bcfc25222f6d6
3
+ metadata.gz: feedb049131233fa3b5af8e496c634a4a3f62258
4
+ data.tar.gz: 29c4fdbee9fd7487edd7fb9154fdf45d1592f531
5
5
  SHA512:
6
- metadata.gz: d2ead4c8b9afa65f23bdd6a6c216d17768f26b9e6f5023724c9bbb3cc6abdd03c4c78f14c7ba77573c201f89535ca0e14a643fc2bc2d5d1f06ef3964a705b33f
7
- data.tar.gz: a1b090dfbb50edd0405fb8d0202b590f18f4ce2d7d4b5e2771a3da6bf275fe076a6fad02d074f0577a4f6fcfa3b68de683e7d5e5aa879cc072cb2198dedbc13d
6
+ metadata.gz: 140b08f978e59a54c21eb8269245bc463fcdb7ab9f9f5cd742c374ef439df7c38880b922331dabda6975b894d4ad64bbfc8e3c37bb831d6509c222d0fda0019f
7
+ data.tar.gz: e2aa1bfa00bcf148465aaa52ee51f80f0bb350bbb17f9d4a7b542c1eaa17752f9a89106de49f84bd147861c375a6e4b8d950b4206f0a2cff52daa8f79cd69ae4
data/lib/saml.rb CHANGED
@@ -57,12 +57,13 @@ module Saml
57
57
  end
58
58
 
59
59
  module SubStatusCodes
60
- AUTHN_FAILED = 'urn:oasis:names:tc:SAML:2.0:status:AuthnFailed'
61
- NO_AUTHN_CONTEXT = 'urn:oasis:names:tc:SAML:2.0:status:NoAuthnContext'
62
- PARTIAL_LOGOUT = 'urn:oasis:names:tc:SAML:2.0:status:PartialLogout'
63
- REQUEST_DENIED = 'urn:oasis:names:tc:SAML:2.0:status:RequestDenied'
60
+ AUTHN_FAILED = 'urn:oasis:names:tc:SAML:2.0:status:AuthnFailed'
61
+ NO_AUTHN_CONTEXT = 'urn:oasis:names:tc:SAML:2.0:status:NoAuthnContext'
62
+ PARTIAL_LOGOUT = 'urn:oasis:names:tc:SAML:2.0:status:PartialLogout'
63
+ REQUEST_DENIED = 'urn:oasis:names:tc:SAML:2.0:status:RequestDenied'
64
+ UNKNOWN_PRINCIPAL = 'urn:oasis:names:tc:SAML:2.0:status:UnknownPrincipal'
64
65
 
65
- ALL = [AUTHN_FAILED, NO_AUTHN_CONTEXT, PARTIAL_LOGOUT, REQUEST_DENIED]
66
+ ALL = [AUTHN_FAILED, NO_AUTHN_CONTEXT, PARTIAL_LOGOUT, REQUEST_DENIED, UNKNOWN_PRINCIPAL]
66
67
  end
67
68
 
68
69
  module Bindings
@@ -37,6 +37,10 @@ module Saml
37
37
  def partial_logout?
38
38
  sub_status_code.value == SubStatusCodes::PARTIAL_LOGOUT
39
39
  end
40
+
41
+ def unknown_principal?
42
+ sub_status_code.value == SubStatusCodes::UNKNOWN_PRINCIPAL
43
+ end
40
44
  end
41
45
  end
42
46
  end
data/lib/saml/response.rb CHANGED
@@ -18,6 +18,10 @@ module Saml
18
18
  !success? && status.status_code.no_authn_context?
19
19
  end
20
20
 
21
+ def unknown_principal?
22
+ !success? && status.status_code.unknown_principal?
23
+ end
24
+
21
25
  def encrypt_assertions(certificate)
22
26
  @encrypted_assertions = []
23
27
  assertions.each do |assertion|
data/lib/saml/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Saml
2
- VERSION = "2.11.0"
2
+ VERSION = "2.11.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libsaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.11.0
4
+ version: 2.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benoist Claassen