saml-kit 1.0.17 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/saml/kit.rb +1 -0
- data/lib/saml/kit/builders/templates/assertion.builder +1 -1
- data/lib/saml/kit/deprecated/metadata.rb +17 -0
- data/lib/saml/kit/organization.rb +0 -12
- data/lib/saml/kit/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 927b054a29dcaf1cb7bd7e56510568b88876ce3261bb860e84def65aa953a157
|
|
4
|
+
data.tar.gz: a6ec4be04bcd08417d986be71d3b61a9b86e504cf1a012aab53fd52f760c0c61
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e45ac8266b55173f1b91454b7f254e44047c7e012174bc5fb3ac4deb5efe3fc89cc1b8f6be7d607b6319db43ea5287b5752d4d6530162491ce65481fbca5a928
|
|
7
|
+
data.tar.gz: edc8ce6cc3527144fa75b70e9a38e9a221f9a14366121452d0c11a68584b43ceef2389c04146fbadc1270cd36eab7c0d5927293772a26301034a1b0407b9b1d5
|
data/lib/saml/kit.rb
CHANGED
|
@@ -41,6 +41,7 @@ require 'saml/kit/default_registry'
|
|
|
41
41
|
require 'saml/kit/logout_response'
|
|
42
42
|
require 'saml/kit/logout_request'
|
|
43
43
|
require 'saml/kit/metadata'
|
|
44
|
+
require 'saml/kit/deprecated/metadata'
|
|
44
45
|
require 'saml/kit/null_assertion'
|
|
45
46
|
require 'saml/kit/organization'
|
|
46
47
|
require 'saml/kit/parser'
|
|
@@ -24,7 +24,7 @@ xml.Assertion(assertion_options) do
|
|
|
24
24
|
if assertion_attributes.any?
|
|
25
25
|
xml.AttributeStatement do
|
|
26
26
|
assertion_attributes.each do |key, value|
|
|
27
|
-
xml.Attribute Name: key
|
|
27
|
+
xml.Attribute Name: key do
|
|
28
28
|
xml.AttributeValue value.to_s
|
|
29
29
|
end
|
|
30
30
|
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Saml
|
|
2
|
+
module Kit
|
|
3
|
+
class Metadata
|
|
4
|
+
# @deprecated
|
|
5
|
+
def organization_name
|
|
6
|
+
Saml::Kit.deprecate('`organization_name` is deprecated. Use `organization.name`')
|
|
7
|
+
organization.name
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
# @deprecated
|
|
11
|
+
def organization_url
|
|
12
|
+
Saml::Kit.deprecate('`organization_url` is deprecated. Use `organization.url`')
|
|
13
|
+
organization.url
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -19,18 +19,6 @@ module Saml
|
|
|
19
19
|
def url
|
|
20
20
|
at_xpath('./md:OrganizationURL').try(:text)
|
|
21
21
|
end
|
|
22
|
-
|
|
23
|
-
# @deprecated
|
|
24
|
-
def organization_name
|
|
25
|
-
Saml::Kit.deprecate('`organization_name` is deprecated. Use `organization.name`')
|
|
26
|
-
name
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
# @deprecated
|
|
30
|
-
def organization_url
|
|
31
|
-
Saml::Kit.deprecate('`organization_url` is deprecated. Use `organization.url`')
|
|
32
|
-
url
|
|
33
|
-
end
|
|
34
22
|
end
|
|
35
23
|
end
|
|
36
24
|
end
|
data/lib/saml/kit/version.rb
CHANGED
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.
|
|
4
|
+
version: 1.0.18
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- mo khan
|
|
@@ -259,6 +259,7 @@ files:
|
|
|
259
259
|
- lib/saml/kit/conditions.rb
|
|
260
260
|
- lib/saml/kit/configuration.rb
|
|
261
261
|
- lib/saml/kit/default_registry.rb
|
|
262
|
+
- lib/saml/kit/deprecated/metadata.rb
|
|
262
263
|
- lib/saml/kit/document.rb
|
|
263
264
|
- lib/saml/kit/identity_provider_metadata.rb
|
|
264
265
|
- lib/saml/kit/invalid_document.rb
|