diff options
| author | mo <mo.khan@gmail.com> | 2018-01-27 10:58:47 -0700 |
|---|---|---|
| committer | mo <mo.khan@gmail.com> | 2018-01-27 10:58:47 -0700 |
| commit | 3b8aa3f32029e530658a7c345d8f46146b98d842 (patch) | |
| tree | 9a0b90a76d9d72f605b6676f8b468131a06fb38b /lib/saml/kit | |
| parent | 687812c1417082e1f1677625264c61d7cfd3e77f (diff) | |
remove deprecations.v1.0.0
Diffstat (limited to 'lib/saml/kit')
| -rw-r--r-- | lib/saml/kit/authentication_request.rb | 3 | ||||
| -rw-r--r-- | lib/saml/kit/builders/authentication_request.rb | 12 | ||||
| -rw-r--r-- | lib/saml/kit/configuration.rb | 30 | ||||
| -rw-r--r-- | lib/saml/kit/identity_provider_metadata.rb | 3 | ||||
| -rw-r--r-- | lib/saml/kit/logout_request.rb | 3 | ||||
| -rw-r--r-- | lib/saml/kit/logout_response.rb | 3 | ||||
| -rw-r--r-- | lib/saml/kit/namespaces.rb | 3 | ||||
| -rw-r--r-- | lib/saml/kit/service_provider_metadata.rb | 3 | ||||
| -rw-r--r-- | lib/saml/kit/xml_templatable.rb | 6 |
9 files changed, 0 insertions, 66 deletions
diff --git a/lib/saml/kit/authentication_request.rb b/lib/saml/kit/authentication_request.rb index e95bce7..bdaf294 100644 --- a/lib/saml/kit/authentication_request.rb +++ b/lib/saml/kit/authentication_request.rb @@ -54,9 +54,6 @@ module Saml end response_binding.serialize(builder, relay_state: relay_state) end - - # @deprecated Use {#Saml::Kit::Builders::AuthenticationRequest} instead of this. - Builder = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('Saml::Kit::AuthenticationRequest::Builder', 'Saml::Kit::Builders::AuthenticationRequest') end end end diff --git a/lib/saml/kit/builders/authentication_request.rb b/lib/saml/kit/builders/authentication_request.rb index 26acad6..2433dd2 100644 --- a/lib/saml/kit/builders/authentication_request.rb +++ b/lib/saml/kit/builders/authentication_request.rb @@ -18,18 +18,6 @@ module Saml @version = "2.0" end - # @deprecated Use {#assertion_consumer_service_url} instead of this method. - def acs_url - Saml::Kit.deprecate("acs_url is deprecated. Use assertion_consumer_service_url instead") - self.assertion_consumer_service_url - end - - # @deprecated Use {#assertion_consumer_service_url=} instead of this method. - def acs_url=(value) - Saml::Kit.deprecate("acs_url= is deprecated. Use assertion_consumer_service_url= instead") - self.assertion_consumer_service_url = value - end - def build Saml::Kit::AuthenticationRequest.new(to_xml) end diff --git a/lib/saml/kit/configuration.rb b/lib/saml/kit/configuration.rb index 0e00b31..3384483 100644 --- a/lib/saml/kit/configuration.rb +++ b/lib/saml/kit/configuration.rb @@ -89,41 +89,11 @@ module Saml key_pairs(use: use).flat_map(&:private_key) end - # @deprecated Use {#certificates} instead of this method. - def encryption_certificate - Saml::Kit.deprecate("encryption_certificate is deprecated. Use certificates(use: :encryption) instead") - certificates(use: :encryption).last - end - - # @deprecated Use {#private_keys} instead of this method. - def signing_private_key - Saml::Kit.deprecate("signing_private_key is deprecated. Use private_keys(use: :signing) instead") - private_keys(use: :signing).last - end - - # @deprecated Use {#private_keys} instead of this method. - def encryption_private_key - Saml::Kit.deprecate("encryption_private_key is deprecated. Use private_keys(use: :encryption) instead") - private_keys(use: :encryption).last - end - # Returns true if there is at least one signing certificate registered. def sign? certificates(use: :signing).any? end - # @deprecated Use {#entity_id} instead of this method. - def issuer - Saml::Kit.deprecate("issuer is deprecated. Use entity_id instead") - self.entity_id - end - - # @deprecated Use {#entity_id=} instead of this method. - def issuer=(value) - Saml::Kit.deprecate("issuer= is deprecated. Use entity_id= instead") - self.entity_id = value - end - private def ensure_proper_use!(use) diff --git a/lib/saml/kit/identity_provider_metadata.rb b/lib/saml/kit/identity_provider_metadata.rb index 99f6cb4..bd87d2b 100644 --- a/lib/saml/kit/identity_provider_metadata.rb +++ b/lib/saml/kit/identity_provider_metadata.rb @@ -84,9 +84,6 @@ module Saml def self.builder_class Saml::Kit::Builders::IdentityProviderMetadata end - - # @deprecated Use {#Saml::Kit::Builders::IdentityProviderMetadata} instead of this. - Builder = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('Saml::Kit::IdentityProviderMetadata::Builder', 'Saml::Kit::Builders::IdentityProviderMetadata') end end end diff --git a/lib/saml/kit/logout_request.rb b/lib/saml/kit/logout_request.rb index ee6eb93..2f2d89b 100644 --- a/lib/saml/kit/logout_request.rb +++ b/lib/saml/kit/logout_request.rb @@ -52,9 +52,6 @@ module Saml response_binding.serialize(builder, relay_state: relay_state) end - # @deprecated Use {#Saml::Kit::Builders::LogoutRequest} instead of this. - Builder = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('Saml::Kit::LogoutRequest::Builder', 'Saml::Kit::Builders::LogoutRequest') - private def single_logout_service diff --git a/lib/saml/kit/logout_response.rb b/lib/saml/kit/logout_response.rb index a683252..940aaa9 100644 --- a/lib/saml/kit/logout_response.rb +++ b/lib/saml/kit/logout_response.rb @@ -12,9 +12,6 @@ module Saml @request_id = request_id super(xml, name: "LogoutResponse", configuration: configuration) end - - # @deprecated Use {#Saml::Kit::Builders::LogoutResponse} instead of this. - Builder = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('Saml::Kit::LogoutResponse::Builder', 'Saml::Kit::Builders::LogoutResponse') end end end diff --git a/lib/saml/kit/namespaces.rb b/lib/saml/kit/namespaces.rb index d0454db..6ddbc31 100644 --- a/lib/saml/kit/namespaces.rb +++ b/lib/saml/kit/namespaces.rb @@ -19,9 +19,6 @@ module Saml UNSPECIFIED_NAMEID = "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified" URI = "urn:oasis:names:tc:SAML:2.0:attrname-format:uri" VERSION_MISMATCH_ERROR = "urn:oasis:names:tc:SAML:2.0:status:VersionMismatch" - - # @deprecated Use {#::Xml::Kit::Namespace::XMLDSIG} instead of this. - XMLDSIG = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('Saml::Kit::Namespaces::XMLDSIG', '::Xml::Kit::Namespaces::XMLDSIG') end end end diff --git a/lib/saml/kit/service_provider_metadata.rb b/lib/saml/kit/service_provider_metadata.rb index 0e25bc8..dde1cab 100644 --- a/lib/saml/kit/service_provider_metadata.rb +++ b/lib/saml/kit/service_provider_metadata.rb @@ -29,9 +29,6 @@ module Saml def self.builder_class Saml::Kit::Builders::ServiceProviderMetadata end - - # @deprecated Use 'Saml::Kit::Builders::ServiceProviderMetadata'. - Builder = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('Saml::Kit::ServiceProviderMetadata::Builder', 'Saml::Kit::Builders::ServiceProviderMetadata') end end end diff --git a/lib/saml/kit/xml_templatable.rb b/lib/saml/kit/xml_templatable.rb index 21f3f57..0f4af84 100644 --- a/lib/saml/kit/xml_templatable.rb +++ b/lib/saml/kit/xml_templatable.rb @@ -15,12 +15,6 @@ module Saml embed_signature && configuration.sign? end - # @deprecated Use {#embed_signature=} instead of this method. - def sign=(value) - Saml::Kit.deprecate("sign= is deprecated. Use embed_signature= instead.") - self.embed_signature = value - end - def digest_method configuration.digest_method end |
