libsaml 2.15.6 → 2.15.7

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: 917a7fc226436d3b4df3ed774c0627a02975545c
4
- data.tar.gz: e7d731baba5fd409c45a28df6c3ad3e127c49e68
3
+ metadata.gz: 0ea130c5707860abadc061f0e6ebf45f9f0717d0
4
+ data.tar.gz: 83e251855daa6d16d87db486f6611cdfa9693721
5
5
  SHA512:
6
- metadata.gz: 213945cd1f9c05b3a3adc45f2c8a2b98f217099148d857a97bbee25ee598d922e94885af91704500fe5e1af09cbc8f693a25f0fd6fd10ff80e723b2caf9dc0c0
7
- data.tar.gz: b610879ca8df0915720f2cb64f8792c820ef507735bb520906ed3a6b674a8ee5e1da26200a422df2f0798608c95cdee43b1e2bfa49b44d73aee903e62db05591
6
+ metadata.gz: 7ecb40c913d12f9660494487899f68b5ed4f265536ad2a8f91c182485a33dd2584e29a4a912c85bfc858e155e5e1ca67769b72b2ca26870820c465dc57226859
7
+ data.tar.gz: 1506fde80e3aba26f41e938a84ccf4287d246c6a036b66ba1449a62ccc573f88e01f0471a6b39474248519afc472279f12a4373350184619c2d2bcb2dbdf7133
data/lib/saml.rb CHANGED
@@ -59,13 +59,14 @@ module Saml
59
59
  end
60
60
 
61
61
  module SubStatusCodes
62
- AUTHN_FAILED = 'urn:oasis:names:tc:SAML:2.0:status:AuthnFailed'
63
- NO_AUTHN_CONTEXT = 'urn:oasis:names:tc:SAML:2.0:status:NoAuthnContext'
64
- PARTIAL_LOGOUT = 'urn:oasis:names:tc:SAML:2.0:status:PartialLogout'
65
- REQUEST_DENIED = 'urn:oasis:names:tc:SAML:2.0:status:RequestDenied'
66
- UNKNOWN_PRINCIPAL = 'urn:oasis:names:tc:SAML:2.0:status:UnknownPrincipal'
67
-
68
- ALL = [AUTHN_FAILED, NO_AUTHN_CONTEXT, PARTIAL_LOGOUT, REQUEST_DENIED, UNKNOWN_PRINCIPAL]
62
+ AUTHN_FAILED = 'urn:oasis:names:tc:SAML:2.0:status:AuthnFailed'
63
+ NO_AUTHN_CONTEXT = 'urn:oasis:names:tc:SAML:2.0:status:NoAuthnContext'
64
+ PARTIAL_LOGOUT = 'urn:oasis:names:tc:SAML:2.0:status:PartialLogout'
65
+ REQUEST_DENIED = 'urn:oasis:names:tc:SAML:2.0:status:RequestDenied'
66
+ REQUEST_UNSUPPORTED = 'urn:oasis:names:tc:SAML:2.0:status:RequestUnsupported'
67
+ UNKNOWN_PRINCIPAL = 'urn:oasis:names:tc:SAML:2.0:status:UnknownPrincipal'
68
+
69
+ ALL = [AUTHN_FAILED, NO_AUTHN_CONTEXT, PARTIAL_LOGOUT, REQUEST_DENIED, REQUEST_UNSUPPORTED, UNKNOWN_PRINCIPAL]
69
70
  end
70
71
 
71
72
  module Bindings
@@ -30,6 +30,10 @@ module Saml
30
30
  sub_status_code.value == SubStatusCodes::REQUEST_DENIED
31
31
  end
32
32
 
33
+ def request_unsupported?
34
+ sub_status_code.value == SubStatusCodes::REQUEST_UNSUPPORTED
35
+ end
36
+
33
37
  def no_authn_context?
34
38
  sub_status_code.value == SubStatusCodes::NO_AUTHN_CONTEXT
35
39
  end
data/lib/saml/response.rb CHANGED
@@ -16,6 +16,10 @@ module Saml
16
16
  !success? && status.status_code.request_denied?
17
17
  end
18
18
 
19
+ def request_unsupported?
20
+ !success? && status.status_code.request_unsupported?
21
+ end
22
+
19
23
  def no_authn_context?
20
24
  !success? && status.status_code.no_authn_context?
21
25
  end
data/lib/saml/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Saml
2
- VERSION = "2.15.6"
2
+ VERSION = "2.15.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libsaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.15.6
4
+ version: 2.15.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benoist Claassen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-30 00:00:00.000000000 Z
11
+ date: 2015-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport