Skip to content

Commit 7ce3f3a

Browse files
committed
Fix metadata.rb to use OneLogin::RubySaml::Utils.generate as well
1 parent d1d99d0 commit 7ce3f3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/onelogin/ruby-saml/metadata.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require "uri"
2-
require "uuid"
32

43
require "onelogin/ruby-saml/logging"
4+
require "onelogin/ruby-saml/utils"
55

66
# Only supports SAML 2.0
77
module OneLogin
@@ -50,7 +50,7 @@ def generate(settings, pretty_print=false)
5050
xc2.text = cert_text
5151
end
5252

53-
root.attributes["ID"] = "_" + UUID.new.generate
53+
root.attributes["ID"] = OneLogin::RubySaml::Utils.uuid
5454
if settings.issuer
5555
root.attributes["entityID"] = settings.issuer
5656
end

0 commit comments

Comments
 (0)