Commit 94fd796

mo <mo.khan@gmail.com>
2018-01-13 23:19:44
deprecate issuer in favour of entity_id.
1 parent 2db8f4c
Changed files (1)
lib
lib/saml/kit/configuration.rb
@@ -21,8 +21,8 @@ module Saml
     #   end
     class Configuration
       USES = [:signing, :encryption]
-      # The issuer or entity_id to use.
-      attr_accessor :issuer
+      # The issuer to use in requests or responses from this entity to use.
+      attr_accessor :entity_id
       # The signature method to use when generating signatures (See {Saml::Kit::Builders::XmlSignature::SIGNATURE_METHODS})
       attr_accessor :signature_method
       # The digest method to use when generating signatures (See {Saml::Kit::Builders::XmlSignature::DIGEST_METHODS})
@@ -112,6 +112,18 @@ module Saml
         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)