Skip to content

Commit bdccdc2

Browse files
committed
Allow optional prefix & suffix for AuthNRequest ID attribute
1 parent 630a156 commit bdccdc2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/onelogin/ruby-saml/authrequest.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ class Authrequest < SamlMessage
1919
# Initializes the AuthNRequest. An Authrequest Object that is an extension of the SamlMessage class.
2020
# Asigns an ID, a random uuid.
2121
#
22-
def initialize
23-
@uuid = OneLogin::RubySaml::Utils.uuid
22+
def initialize(**options)
23+
@uuid = "#{options[:id_prefix]}#{OneLogin::RubySaml::Utils.uuid}#{options[:id_suffix]}"
2424
end
2525

2626
# Creates the AuthNRequest string.

0 commit comments

Comments
 (0)