saml-kit 1.0.18 → 1.0.19

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: 927b054a29dcaf1cb7bd7e56510568b88876ce3261bb860e84def65aa953a157
4
- data.tar.gz: a6ec4be04bcd08417d986be71d3b61a9b86e504cf1a012aab53fd52f760c0c61
3
+ metadata.gz: 7de3914506e622094ea275f1f1f98a0994931ab9779df6e58c47387558be511b
4
+ data.tar.gz: ea5497e11c1490e189a391354bfa8cc958ce758942cba8f139c3fc29540cf2ba
5
5
  SHA512:
6
- metadata.gz: e45ac8266b55173f1b91454b7f254e44047c7e012174bc5fb3ac4deb5efe3fc89cc1b8f6be7d607b6319db43ea5287b5752d4d6530162491ce65481fbca5a928
7
- data.tar.gz: edc8ce6cc3527144fa75b70e9a38e9a221f9a14366121452d0c11a68584b43ceef2389c04146fbadc1270cd36eab7c0d5927293772a26301034a1b0407b9b1d5
6
+ metadata.gz: 0cdd0a19b09784a1987cc9e16e98498ad6411b9b9f17bd31aaef0c4436de6dd0b8b543ee096eb7fa56abfddc9fdb55fb626abd55a44b6bd53b52e312fd14cd51
7
+ data.tar.gz: c79384552443f04600c30ff75f617ad88e3d3b3835e206299a99d8b773a57b20200e6f1f36ec206a0af6838cb97a50aacca9873302004e8ed7b2608ea0489b6f
@@ -13,9 +13,12 @@ module Saml
13
13
  :request, :issuer, :reference_id, :now, :configuration, :user,
14
14
  :version, :destination
15
15
 
16
+ attr_accessor :default_name_id_format
17
+
16
18
  def initialize(response_builder, embed_signature)
17
19
  @response_builder = response_builder
18
20
  self.embed_signature = embed_signature
21
+ self.default_name_id_format = Saml::Kit::Namespaces::UNSPECIFIED_NAMEID
19
22
  end
20
23
 
21
24
  def name_id_format
@@ -69,7 +72,7 @@ module Saml
69
72
  end
70
73
 
71
74
  def name_id_options
72
- { Format: name_id_format || Saml::Kit::Namespaces::UNSPECIFIED_NAMEID }
75
+ { Format: name_id_format || default_name_id_format }
73
76
  end
74
77
  end
75
78
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Saml
4
4
  module Kit
5
- VERSION = '1.0.18'.freeze
5
+ VERSION = '1.0.19'.freeze
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saml-kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.18
4
+ version: 1.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - mo khan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-09 00:00:00.000000000 Z
11
+ date: 2018-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel