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 +4 -4
- data/lib/saml.rb +6 -5
- data/lib/saml/elements/status_code.rb +4 -0
- data/lib/saml/response.rb +4 -0
- data/lib/saml/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: feedb049131233fa3b5af8e496c634a4a3f62258
|
4
|
+
data.tar.gz: 29c4fdbee9fd7487edd7fb9154fdf45d1592f531
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
61
|
-
NO_AUTHN_CONTEXT
|
62
|
-
PARTIAL_LOGOUT
|
63
|
-
REQUEST_DENIED
|
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
|
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