libsaml 2.6.7 → 2.6.8

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: 72e3ce4577baaad2edea2cf549a6475aa5a7f020
4
- data.tar.gz: b8ee8698e1d73a580b083ebd11ed8a6108c423ef
3
+ metadata.gz: abc410acb4f6029ff417ff505e56f51eab76dfb3
4
+ data.tar.gz: cd8016f9425364e39d9afdc2d66c90123081f5fc
5
5
  SHA512:
6
- metadata.gz: 739881c84e98d856a3aa94601cac45ad5d1e067730357ff3e150aeda489b82999e1908a5f4033a99af193a4376513ccdec76f72d0c802a14d3492c305ebdfac5
7
- data.tar.gz: 4686a95c8e344cc25193bacf2d9f90188075b312e3963aae580a10c55b3e2454e4bbcba594b8b7d03e00ae060262750bd3b5a1f3344cf27f69689871f1b3c796
6
+ metadata.gz: 090148132828b9feef41e31548576e6ac423df4a405e2ac686d7140af3e9bfbad22d0e7d65c32ba370d105eece98f38bbfbb7be9aa0f88e72b134b413c15c90e
7
+ data.tar.gz: 572bf614bd58582c02a6f9f4019dc463e20e126d60f758f661ecd263c16c6b6f30b595f0846564b0a0612094690e841fcd92fe19f8086fff52a53e15d77d23f9
data/lib/saml/artifact.rb CHANGED
@@ -2,23 +2,23 @@ module Saml
2
2
  class Artifact
3
3
  include ::HappyMapper
4
4
 
5
- TYPE_CODE = "\000\004"
6
- END_POINT_INDEX = "\000\000"
5
+ TYPE_CODE = "\000\004"
6
+ ENDPOINT_INDEX = "\000\000"
7
7
 
8
8
  tag "Artifact"
9
9
  namespace 'samlp'
10
10
 
11
11
  content :artifact, String
12
12
 
13
- def initialize(artifact = nil)
13
+ def initialize(artifact = nil, endpoint_index = ENDPOINT_INDEX)
14
14
  if artifact
15
15
  @artifact = artifact
16
16
  else
17
17
  source_id = ::Digest::SHA1.digest(Saml.current_provider.entity_id.to_s)
18
18
  message_handle = ::SecureRandom.random_bytes(20)
19
19
  @type_code = TYPE_CODE
20
- @endpoint_index = END_POINT_INDEX
21
- @artifact = Saml::Encoding.encode_64 [@type_code, @endpoint_index, source_id, message_handle].join
20
+ @endpoint_index = endpoint_index.is_a?(Numeric) ? [endpoint_index].pack("n") : endpoint_index
21
+ @artifact = Saml::Encoding.encode_64 [@type_code, @endpoint_index, source_id, message_handle].join
22
22
  end
23
23
  end
24
24
 
data/lib/saml/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Saml
2
- VERSION = "2.6.7"
2
+ VERSION = "2.6.8"
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.6.7
4
+ version: 2.6.8
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-09-07 00:00:00.000000000 Z
11
+ date: 2015-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport