Skip to content

Commit

Permalink
[feature] Improve logging in exsaml:store-authnreqid to help diagnose…
Browse files Browse the repository at this point in the history
… issues with deletion of request id
  • Loading branch information
adamretter committed Aug 30, 2024
1 parent 3a81045 commit 1e2ce86
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions content/exsaml.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,13 @@ declare %private function exsaml:store-authnreqid-as-exsol-user($cid as xs:strin
declare %private function exsaml:store-authnreqid($cid as xs:string, $reqid as xs:string, $instant as xs:dateTime) {
let $log := exsaml:log("info", $cid, "storing SAML request id: " || $reqid || ", date: " || $instant)
return
system:as-user(
$exsaml:exsaml-user,
$exsaml:exsaml-pass,
let $stored-saml-request-id-path := system:as-user($exsaml:exsaml-user, $exsaml:exsaml-pass,
exsaml:store-authnreqid-as-exsol-user($cid, $reqid, $instant)
)
return
let $log := exsaml:log("trace", $cid, "storing SAML request id: stored at path: " || $stored-saml-request-id-path)
return
$stored-saml-request-id-path
};

(: ==== FUNCTIONS TO PROCESS AND VALIDATE A SAML AUTHN RESPONSE ==== :)
Expand Down

0 comments on commit 1e2ce86

Please sign in to comment.