esaml icon indicating copy to clipboard operation
esaml copied to clipboard

Decode and track RequestIds

Open kmacgugan opened this issue 8 years ago • 0 comments

  • When generating an authn request, generate unique ID and store it for a certain time (5 minutes).
  • When validating an assertion response, verify that the ID in InResponseTo (if present) matches one we know; then forget that one.

Note that both #esaml_response{} and #esaml_assertion{} gets an in_response_to field: the ID is present in both subtrees of the XML document; but for validating an assertion response, only esaml_assertion is used.

We chose not to add an ets table in esaml_utils and instead track the ID within our application, however this could be an option here.

kmacgugan avatar Jun 29 '16 18:06 kmacgugan