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

Method Element

schema.go:23–30  ·  view source on GitHub ↗

Element returns an etree.Element representing the object in XML form.

()

Source from the content-addressed store, hash-verified

21
22// Element returns an etree.Element representing the object in XML form.
23func (r *RequestedAuthnContext) Element() *etree.Element {
24 el := etree.NewElement("samlp:RequestedAuthnContext")
25 el.CreateAttr("Comparison", r.Comparison)
26 elContext := etree.NewElement("saml:AuthnContextClassRef")
27 elContext.SetText(r.AuthnContextClassRef)
28 el.AddChild(elContext)
29 return el
30}
31
32// AuthnRequest represents the SAML object of the same name, a request from a service provider
33// to authenticate a user.

Callers 1

Calls

no outgoing calls

Tested by 1