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 +4 -4
- data/lib/saml/artifact.rb +5 -5
- data/lib/saml/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abc410acb4f6029ff417ff505e56f51eab76dfb3
|
4
|
+
data.tar.gz: cd8016f9425364e39d9afdc2d66c90123081f5fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
6
|
-
|
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 =
|
21
|
-
@artifact
|
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
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.
|
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-
|
11
|
+
date: 2015-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|