Commit 30cde18

mo <mo.khan@gmail.com>
2017-10-23 01:46:15
extract helper method to generate an authnrequest.
1 parent 4915234
Changed files (1)
lib
saml
lib/saml/kit/request.rb
@@ -5,6 +5,10 @@ module Saml
         Base64.encode64(compress(document.to_xml))
       end
 
+      def self.authentication
+        encode(AuthenticationRequest::Builder.new)
+      end
+
       def self.compress(content)
         content
         #Zlib::Deflate.deflate(xml, 9)[2..-5]