saml-kit 0.3.6 → 1.0.0
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/README.md +2 -0
- data/lib/saml/kit.rb +1 -6
- data/lib/saml/kit/authentication_request.rb +0 -3
- data/lib/saml/kit/builders/authentication_request.rb +0 -12
- data/lib/saml/kit/configuration.rb +0 -30
- data/lib/saml/kit/identity_provider_metadata.rb +0 -3
- data/lib/saml/kit/logout_request.rb +0 -3
- data/lib/saml/kit/logout_response.rb +0 -3
- data/lib/saml/kit/namespaces.rb +0 -3
- data/lib/saml/kit/service_provider_metadata.rb +0 -3
- data/lib/saml/kit/version.rb +1 -1
- data/lib/saml/kit/xml_templatable.rb +0 -6
- data/saml-kit.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 046400434da1e60aa53d08696406ba05304b214dc3dd8fb0003af151d19bf936
|
|
4
|
+
data.tar.gz: f68deaa2888842b02a18c8883b179f4ce859b809504fc3ed274203a7b8bbc236
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 20072f13b334c966680fe5f67da41ca3d33227af2e1a798b06f79012d193efb7c201d2fc472b0d4dc82e8e2b6a137f5cfd692f5d2c7d524ad5a7d5a981522623
|
|
7
|
+
data.tar.gz: aadd930c2169429d232bf523499644c8c8a9b37b04fdc37b7c59a080081962e882362941e6838ec09d301a652946e27f6352f3c667fd7da8957a980284b0a476
|
data/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
|
+
*Logo courtesy of [@speasley](https://github.com/speasley)*
|
|
4
|
+
|
|
3
5
|
[](https://rubygems.org/gems/saml-kit)
|
|
4
6
|
[](https://codeclimate.com/github/saml-kit/saml-kit)
|
|
5
7
|
[](https://travis-ci.org/saml-kit/saml-kit)
|
data/lib/saml/kit.rb
CHANGED
|
@@ -62,14 +62,9 @@ module Saml
|
|
|
62
62
|
end
|
|
63
63
|
|
|
64
64
|
def deprecate(message)
|
|
65
|
-
@deprecation ||= ActiveSupport::Deprecation.new('
|
|
65
|
+
@deprecation ||= ActiveSupport::Deprecation.new('2.0.0', 'saml-kit')
|
|
66
66
|
@deprecation.deprecation_warning(message)
|
|
67
67
|
end
|
|
68
68
|
end
|
|
69
|
-
|
|
70
|
-
# @deprecated Use {#::Xml::Kit::Id} instead of this.
|
|
71
|
-
Id = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('Saml::Kit::Id', '::Xml::Kit::Id')
|
|
72
|
-
# @deprecated Use {#::Xml::Kit::Fingerprint} instead of this.
|
|
73
|
-
Fingerprint = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('Saml::Kit::Fingerprint', '::Xml::Kit::Fingerprint')
|
|
74
69
|
end
|
|
75
70
|
end
|
|
@@ -54,9 +54,6 @@ module Saml
|
|
|
54
54
|
end
|
|
55
55
|
response_binding.serialize(builder, relay_state: relay_state)
|
|
56
56
|
end
|
|
57
|
-
|
|
58
|
-
# @deprecated Use {#Saml::Kit::Builders::AuthenticationRequest} instead of this.
|
|
59
|
-
Builder = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('Saml::Kit::AuthenticationRequest::Builder', 'Saml::Kit::Builders::AuthenticationRequest')
|
|
60
57
|
end
|
|
61
58
|
end
|
|
62
59
|
end
|
|
@@ -18,18 +18,6 @@ module Saml
|
|
|
18
18
|
@version = "2.0"
|
|
19
19
|
end
|
|
20
20
|
|
|
21
|
-
# @deprecated Use {#assertion_consumer_service_url} instead of this method.
|
|
22
|
-
def acs_url
|
|
23
|
-
Saml::Kit.deprecate("acs_url is deprecated. Use assertion_consumer_service_url instead")
|
|
24
|
-
self.assertion_consumer_service_url
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
# @deprecated Use {#assertion_consumer_service_url=} instead of this method.
|
|
28
|
-
def acs_url=(value)
|
|
29
|
-
Saml::Kit.deprecate("acs_url= is deprecated. Use assertion_consumer_service_url= instead")
|
|
30
|
-
self.assertion_consumer_service_url = value
|
|
31
|
-
end
|
|
32
|
-
|
|
33
21
|
def build
|
|
34
22
|
Saml::Kit::AuthenticationRequest.new(to_xml)
|
|
35
23
|
end
|
|
@@ -89,41 +89,11 @@ module Saml
|
|
|
89
89
|
key_pairs(use: use).flat_map(&:private_key)
|
|
90
90
|
end
|
|
91
91
|
|
|
92
|
-
# @deprecated Use {#certificates} instead of this method.
|
|
93
|
-
def encryption_certificate
|
|
94
|
-
Saml::Kit.deprecate("encryption_certificate is deprecated. Use certificates(use: :encryption) instead")
|
|
95
|
-
certificates(use: :encryption).last
|
|
96
|
-
end
|
|
97
|
-
|
|
98
|
-
# @deprecated Use {#private_keys} instead of this method.
|
|
99
|
-
def signing_private_key
|
|
100
|
-
Saml::Kit.deprecate("signing_private_key is deprecated. Use private_keys(use: :signing) instead")
|
|
101
|
-
private_keys(use: :signing).last
|
|
102
|
-
end
|
|
103
|
-
|
|
104
|
-
# @deprecated Use {#private_keys} instead of this method.
|
|
105
|
-
def encryption_private_key
|
|
106
|
-
Saml::Kit.deprecate("encryption_private_key is deprecated. Use private_keys(use: :encryption) instead")
|
|
107
|
-
private_keys(use: :encryption).last
|
|
108
|
-
end
|
|
109
|
-
|
|
110
92
|
# Returns true if there is at least one signing certificate registered.
|
|
111
93
|
def sign?
|
|
112
94
|
certificates(use: :signing).any?
|
|
113
95
|
end
|
|
114
96
|
|
|
115
|
-
# @deprecated Use {#entity_id} instead of this method.
|
|
116
|
-
def issuer
|
|
117
|
-
Saml::Kit.deprecate("issuer is deprecated. Use entity_id instead")
|
|
118
|
-
self.entity_id
|
|
119
|
-
end
|
|
120
|
-
|
|
121
|
-
# @deprecated Use {#entity_id=} instead of this method.
|
|
122
|
-
def issuer=(value)
|
|
123
|
-
Saml::Kit.deprecate("issuer= is deprecated. Use entity_id= instead")
|
|
124
|
-
self.entity_id = value
|
|
125
|
-
end
|
|
126
|
-
|
|
127
97
|
private
|
|
128
98
|
|
|
129
99
|
def ensure_proper_use!(use)
|
|
@@ -84,9 +84,6 @@ module Saml
|
|
|
84
84
|
def self.builder_class
|
|
85
85
|
Saml::Kit::Builders::IdentityProviderMetadata
|
|
86
86
|
end
|
|
87
|
-
|
|
88
|
-
# @deprecated Use {#Saml::Kit::Builders::IdentityProviderMetadata} instead of this.
|
|
89
|
-
Builder = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('Saml::Kit::IdentityProviderMetadata::Builder', 'Saml::Kit::Builders::IdentityProviderMetadata')
|
|
90
87
|
end
|
|
91
88
|
end
|
|
92
89
|
end
|
|
@@ -52,9 +52,6 @@ module Saml
|
|
|
52
52
|
response_binding.serialize(builder, relay_state: relay_state)
|
|
53
53
|
end
|
|
54
54
|
|
|
55
|
-
# @deprecated Use {#Saml::Kit::Builders::LogoutRequest} instead of this.
|
|
56
|
-
Builder = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('Saml::Kit::LogoutRequest::Builder', 'Saml::Kit::Builders::LogoutRequest')
|
|
57
|
-
|
|
58
55
|
private
|
|
59
56
|
|
|
60
57
|
def single_logout_service
|
|
@@ -12,9 +12,6 @@ module Saml
|
|
|
12
12
|
@request_id = request_id
|
|
13
13
|
super(xml, name: "LogoutResponse", configuration: configuration)
|
|
14
14
|
end
|
|
15
|
-
|
|
16
|
-
# @deprecated Use {#Saml::Kit::Builders::LogoutResponse} instead of this.
|
|
17
|
-
Builder = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('Saml::Kit::LogoutResponse::Builder', 'Saml::Kit::Builders::LogoutResponse')
|
|
18
15
|
end
|
|
19
16
|
end
|
|
20
17
|
end
|
data/lib/saml/kit/namespaces.rb
CHANGED
|
@@ -19,9 +19,6 @@ module Saml
|
|
|
19
19
|
UNSPECIFIED_NAMEID = "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified"
|
|
20
20
|
URI = "urn:oasis:names:tc:SAML:2.0:attrname-format:uri"
|
|
21
21
|
VERSION_MISMATCH_ERROR = "urn:oasis:names:tc:SAML:2.0:status:VersionMismatch"
|
|
22
|
-
|
|
23
|
-
# @deprecated Use {#::Xml::Kit::Namespace::XMLDSIG} instead of this.
|
|
24
|
-
XMLDSIG = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('Saml::Kit::Namespaces::XMLDSIG', '::Xml::Kit::Namespaces::XMLDSIG')
|
|
25
22
|
end
|
|
26
23
|
end
|
|
27
24
|
end
|
|
@@ -29,9 +29,6 @@ module Saml
|
|
|
29
29
|
def self.builder_class
|
|
30
30
|
Saml::Kit::Builders::ServiceProviderMetadata
|
|
31
31
|
end
|
|
32
|
-
|
|
33
|
-
# @deprecated Use 'Saml::Kit::Builders::ServiceProviderMetadata'.
|
|
34
|
-
Builder = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('Saml::Kit::ServiceProviderMetadata::Builder', 'Saml::Kit::Builders::ServiceProviderMetadata')
|
|
35
32
|
end
|
|
36
33
|
end
|
|
37
34
|
end
|
data/lib/saml/kit/version.rb
CHANGED
|
@@ -15,12 +15,6 @@ module Saml
|
|
|
15
15
|
embed_signature && configuration.sign?
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
# @deprecated Use {#embed_signature=} instead of this method.
|
|
19
|
-
def sign=(value)
|
|
20
|
-
Saml::Kit.deprecate("sign= is deprecated. Use embed_signature= instead.")
|
|
21
|
-
self.embed_signature = value
|
|
22
|
-
end
|
|
23
|
-
|
|
24
18
|
def digest_method
|
|
25
19
|
configuration.digest_method
|
|
26
20
|
end
|
data/saml-kit.gemspec
CHANGED
|
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
|
11
11
|
|
|
12
12
|
spec.summary = %q{A simple toolkit for working with SAML.}
|
|
13
13
|
spec.description = %q{A simple toolkit for working with SAML.}
|
|
14
|
-
spec.homepage = "
|
|
14
|
+
spec.homepage = "https://github.com/saml-kit/saml-kit"
|
|
15
15
|
spec.license = "MIT"
|
|
16
16
|
spec.required_ruby_version = '>= 2.2.0'
|
|
17
17
|
|
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: 0.
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- mo khan
|
|
@@ -219,7 +219,7 @@ files:
|
|
|
219
219
|
- lib/saml/kit/xsd/xmldsig-core-schema.xsd
|
|
220
220
|
- lib/saml/kit/xsd_validatable.rb
|
|
221
221
|
- saml-kit.gemspec
|
|
222
|
-
homepage:
|
|
222
|
+
homepage: https://github.com/saml-kit/saml-kit
|
|
223
223
|
licenses:
|
|
224
224
|
- MIT
|
|
225
225
|
metadata:
|