RobotsAndPencils / go-saml

A just good enough SAML client library written in Go.
MIT License
132 stars 82 forks source link

Add Destination attribute #16

Closed Calpicow closed 7 years ago

Calpicow commented 7 years ago

From https://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf:1477


Destination [Optional]
A URI reference indicating the address to which this request has been sent.
This is useful to prevent malicious forwarding of requests to unintended recipients, a protection that is required by some protocol bindings.
If it is present, the actual recipient MUST check that the URI reference identifies the location at which the message was received.
If it does not, the request MUST be discarded. Some protocol bindings may require the use of this attribute (see [SAMLBind]).```