Documentation ¶
Index ¶
- Constants
- func DecodeAttributeQuery(request string) (*samlp.AttributeQueryType, error)
- func DecodeAuthNRequest(encoding string, message string) (*samlp.AuthnRequestType, error)
- func DecodeLogoutRequest(encoding string, message string) (*samlp.LogoutRequestType, error)
- func DecodeResponse(encoding string, b64 bool, message string) (*samlp.ResponseType, error)
- func DecodeSignature(encoding string, b64 bool, message string) (*xml_dsig.SignatureType, error)
- func DeflateAndBase64(data []byte) ([]byte, error)
- func GetCertsFromKeyDescriptors(keyDescs []md.KeyDescriptorType) []string
- func InflateAndDecode(encoding string, b64 bool, message string) (_ []byte, err error)
- func Marshal(data interface{}) ([]byte, error)
- func ParseMetadataXmlIntoStruct(xmlData []byte) (*md.EntityDescriptorType, error)
- func ReadMetadataFromURL(client *http.Client, url string) ([]byte, error)
- func Write(w http.ResponseWriter, body []byte) error
- func WriteXMLMarshalled(w http.ResponseWriter, body interface{}) error
Constants ¶
View Source
const (
EncodingDeflate = "urn:oasis:names:tc:SAML:2.0:bindings:URL-Encoding:DEFLATE"
)
Variables ¶
This section is empty.
Functions ¶
func DecodeAttributeQuery ¶
func DecodeAttributeQuery(request string) (*samlp.AttributeQueryType, error)
func DecodeAuthNRequest ¶
func DecodeAuthNRequest(encoding string, message string) (*samlp.AuthnRequestType, error)
func DecodeLogoutRequest ¶
func DecodeLogoutRequest(encoding string, message string) (*samlp.LogoutRequestType, error)
func DecodeResponse ¶ added in v0.0.3
func DecodeSignature ¶
func DeflateAndBase64 ¶
func GetCertsFromKeyDescriptors ¶
func GetCertsFromKeyDescriptors(keyDescs []md.KeyDescriptorType) []string
func InflateAndDecode ¶ added in v0.3.1
func ParseMetadataXmlIntoStruct ¶
func ParseMetadataXmlIntoStruct(xmlData []byte) (*md.EntityDescriptorType, error)
func ReadMetadataFromURL ¶
func WriteXMLMarshalled ¶
func WriteXMLMarshalled(w http.ResponseWriter, body interface{}) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.