Re: Issue with URI

336 views
Skip to first unread message

Rob Richards

unread,
Nov 27, 2018, 10:15:37 AM11/27/18
to xmlse...@googlegroups.com, Keith Thompson
On 11/20/18 9:00 AM, Keith Thompson wrote:
Good morning,

I'm hoping this is just an ID10T issue but I'm having an issue getting the URIs to match up in a SAML response.

I want the URI in the Reference tag to match the one (or to generate one) in the Assertion tag.  I tried just forcing it in there but that seems to invalidate the signature. 
 

$objDSig->addReference(
$doc,
XMLSecurityDSig::SHA1,
NULL,
array('force_uri' => true, 'overwrite_id' => true)
);
Unfortunately, this is leaving a blank URI (URI="").
What's the proper way of accomplishing that? 
Thanks,
Keith

Based on your other posts and assuming the Assertion node already has an ID value, you should be passing the assertion node instead of the document and setting overwrite_id to false (assuming it has an ID already and thats what you want to use)

Rob

Keith Thompson

unread,
Nov 27, 2018, 10:21:28 AM11/27/18
to xmlseclibs
That was it! =) 

Thank you very much!
Reply all
Reply to author
Forward
0 new messages