MCPcopy Create free account
hub / github.com/crewjam/saml / AttributeQuery

Struct AttributeQuery

schema.go:655–673  ·  view source on GitHub ↗

AttributeQuery represents the SAML object of the same name, a request from a service provider to an attribute authority for attributes of a subject (saml-core §3.3.2.3). See http://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf

Source from the content-addressed store, hash-verified

653//
654// See http://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf
655type AttributeQuery struct {
656 XMLName xml.Name `xml:"urn:oasis:names:tc:SAML:2.0:protocol AttributeQuery"`
657
658 ID string `xml:",attr"`
659 Version string `xml:",attr"`
660 IssueInstant time.Time `xml:",attr"`
661 Destination string `xml:",attr,omitempty"`
662 Consent string `xml:",attr,omitempty"`
663 Issuer *Issuer `xml:"urn:oasis:names:tc:SAML:2.0:assertion Issuer"`
664 Signature *etree.Element
665
666 // Subject names the principal whose attributes are requested.
667 Subject *Subject `xml:"urn:oasis:names:tc:SAML:2.0:assertion Subject"`
668
669 // Attributes, if any, names the attributes requested. An Attribute
670 // with Values asks only for those values. If empty, the attribute
671 // authority returns every attribute the requester may see.
672 Attributes []Attribute `xml:"urn:oasis:names:tc:SAML:2.0:assertion Attribute"`
673}
674
675// Element returns an etree.Element representing the object in XML form.
676func (r *AttributeQuery) Element() *etree.Element {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected