Commit 9d41e9d

mo <mo.khan@gmail.com>
2018-02-26 02:46:48
rename to name_id_policy.
1 parent 46e4775
Changed files (1)
lib/saml/kit/authentication_request.rb
@@ -35,14 +35,14 @@ module Saml
       end
 
       def name_id_format
-        name_id_policy_format
+        name_id_policy
       end
 
       # Extract the NameIDPolicy from the AuthnRequest
       #    <samlp:AuthnRequest>
       #      <samlp:NameIDPolicy Format="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress"/>
       #    </samlp:AuthnRequest>
-      def name_id_policy_format
+      def name_id_policy
         at_xpath('./*/samlp:NameIDPolicy/@Format').try(:value)
       end