Skip to content

Commit c94f8cb

Browse files
committed
uuid required in sign_document but only available if the object was build (SAML Message), if we parse directly it was not available. Related to #209
1 parent 4a80214 commit c94f8cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/xml_security.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ class Document < BaseDocument
8080

8181
attr_accessor :uuid
8282

83+
def uuid
84+
uuid ||= document.root.attributes['ID']
85+
end
86+
8387
#<Signature>
8488
#<SignedInfo>
8589
#<CanonicalizationMethod />

0 commit comments

Comments
 (0)