Skip to content

Commit 8e48c90

Browse files
committed
Allow optional prefix & suffix for AuthNRequest ID attribute
1 parent b843467 commit 8e48c90

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
@@ -20,8 +20,8 @@ class Authrequest < SamlMessage
2020
# Initializes the AuthNRequest. An Authrequest Object that is an extension of the SamlMessage class.
2121
# Asigns an ID, a random uuid.
2222
#
23-
def initialize
24-
@uuid = OneLogin::RubySaml::Utils.uuid
23+
def initialize(**options)
24+
@uuid = "#{options[:id_prefix]}#{OneLogin::RubySaml::Utils.uuid}#{options[:id_suffix]}"
2525
end
2626

2727
def request_id

0 commit comments

Comments
 (0)