Documentation ¶
Index ¶
Constants ¶
const StrictTime = 0
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
A Checker is a predicate against a signed element. The element can be a response or an assertion, but bear in mind that all not data might be signed. Checkers in this package will mention when they operate on the assertion only (in which case they require signed values).
func AcceptableCertificate ¶
AcceptableCertificate checks that the certificate used to sign the assertion is valid for a given issuer. The pool is used as a root of trust.
func ValidTimestamp ¶
ValidTimestamp accepts only assertion still currently valid. Leeway parameter allows to accept SAML providers which are known to be too slow, and where a strict validation would result in rejecting too many legitimate login attempts.
type Principal ¶
type Principal struct { // Elements in response or assertion (spec § 2.3.3), if in the response, the response must // be signed. Clients can rely on this being signed by the certificate. Attributes map[string]string Conditions map[string]string Subject string Issuer string Cert *x509.Certificate // Element in response (spec § 3.2.2), might not be signed InResponseTo string Destination string }
Principal is the person identified by SAML. Only signed information is returned.
var UnAuth Principal