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

Method simpleSignSigningContext

simplesign_binding.go:331–336  ·  view source on GitHub ↗

simpleSignSigningContext returns the signing context the service provider uses for the HTTP-POST-SimpleSign binding, which requires signing, with signatureMethod.

(signatureMethod string)

Source from the content-addressed store, hash-verified

329// uses for the HTTP-POST-SimpleSign binding, which requires signing, with
330// signatureMethod.
331func (sp *ServiceProvider) simpleSignSigningContext(signatureMethod string) (*dsig.SigningContext, error) {
332 if signatureMethod == "" {
333 return nil, errors.New("the HTTP-POST-SimpleSign binding requires ServiceProvider.SignatureMethod to be set")
334 }
335 return sp.signingContext(signatureMethod)
336}
337
338// simpleSignForm returns an auto-submitting HTML form that sends el to
339// destination with the HTTP-POST-SimpleSign binding, in the messageParam

Callers 1

simpleSignFormMethod · 0.95

Calls 2

signingContextMethod · 0.95
NewMethod · 0.65

Tested by

no test coverage detected