saml-kit 1.0.16 → 1.0.17

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: 870747d355b7bcad61bc1d7c502492b74d34e3d374b11134b0f39acebf5b6bb0
4
- data.tar.gz: 3c683b3ce55dcefc468e2e5ff4c9a103fd82b4f314b4e0e2bc41e0f6461b1c3d
3
+ metadata.gz: 8740c5ff70303b968a161c67da75dfc7651d9456f6020d4bca4859cefce353c6
4
+ data.tar.gz: cf0a2a09fa2aa032029f928c1751b09bcc1d0d51b151e8c05d882b5fb689d50b
5
5
  SHA512:
6
- metadata.gz: 01243f10344d2615911d3d9d139e2a39f3a08afe1c66badf311208947d16ee51276977df6e32a52ca085962e952bc470f72e07982c944b40d6b36d11450e453c
7
- data.tar.gz: 84d3a97162a0f01cc2a31b484539a97f92ff452c5c406020318d32a3e3719381825e02c3fd0ce08e43d4597f8701587e1e047f9e0e19ad57bdaf87f122225de5
6
+ metadata.gz: 898f5356615e106f93446b6cc785eb1f5ba86bd82ad4978a5c6f39df92fedb1602ce5a974e33f8a5b4d60fe47aa3e06a528b5da4d7f0e8b1791b54fbfcc14bb0
7
+ data.tar.gz: a06066cf4bc5e22d57d184498e2f798b3cb5b46b25092973f558623085644790d745d778d9532a80fbf836083f7e86ba8a7dbe1ad75a94b4b0012557b7ce8085
@@ -64,10 +64,13 @@ module Saml
64
64
  {
65
65
  AuthnInstant: now.iso8601,
66
66
  SessionIndex: reference_id,
67
- SessionNotOnOrAfter:
68
- configuration.session_timeout.since(now).utc.iso8601,
67
+ SessionNotOnOrAfter: configuration.session_timeout.since(now).utc.iso8601,
69
68
  }
70
69
  end
70
+
71
+ def name_id_options
72
+ { Format: name_id_format || Saml::Kit::Namespaces::UNSPECIFIED_NAMEID }
73
+ end
71
74
  end
72
75
  end
73
76
  end
@@ -4,7 +4,7 @@ xml.Assertion(assertion_options) do
4
4
  xml.Issuer issuer
5
5
  signature_for(reference_id: reference_id, xml: xml)
6
6
  xml.Subject do
7
- xml.NameID name_id, Format: name_id_format
7
+ xml.NameID name_id, name_id_options
8
8
  xml.SubjectConfirmation Method: Saml::Kit::Namespaces::BEARER do
9
9
  xml.SubjectConfirmationData '', subject_confirmation_data_options
10
10
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Saml
4
4
  module Kit
5
- VERSION = '1.0.16'.freeze
5
+ VERSION = '1.0.17'.freeze
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saml-kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.16
4
+ version: 1.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - mo khan