samlbinding

package
v0.0.0-...-f83813f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoRequest = &samlprotocol.ParseRequestFailedError{
	Reason: "no SAMLRequest provided",
}
View Source
var ErrNoResponse = &samlprotocol.ParseRequestFailedError{
	Reason: "no SAMLResponse provided",
}

Functions

This section is empty.

Types

type SAMLBindingHTTPPostParseRequestResult

type SAMLBindingHTTPPostParseRequestResult struct {
	SAMLRequestXML string
	RelayState     string
}

func SAMLBindingHTTPPostParseRequest

func SAMLBindingHTTPPostParseRequest(r *http.Request) (
	result *SAMLBindingHTTPPostParseRequestResult,
	err error,
)

type SAMLBindingHTTPPostParseResponseResult

type SAMLBindingHTTPPostParseResponseResult struct {
	SAMLResponseXML string
	RelayState      string
}

func SAMLBindingHTTPPostParseResponse

func SAMLBindingHTTPPostParseResponse(r *http.Request) (
	result *SAMLBindingHTTPPostParseResponseResult,
	err error,
)

type SAMLBindingHTTPPostWriter

type SAMLBindingHTTPPostWriter struct{}

func (*SAMLBindingHTTPPostWriter) WriteRequest

func (*SAMLBindingHTTPPostWriter) WriteRequest(
	rw http.ResponseWriter,
	r *http.Request,
	callbackURL string,
	requestEl *etree.Element,
	relayState string) error

func (*SAMLBindingHTTPPostWriter) WriteResponse

func (*SAMLBindingHTTPPostWriter) WriteResponse(
	rw http.ResponseWriter,
	r *http.Request,
	callbackURL string,
	responseEl *etree.Element,
	relayState string) error

type SAMLBindingHTTPRedirectParseRequestResult

type SAMLBindingHTTPRedirectParseRequestResult struct {
	SAMLRequest    string
	SAMLRequestXML string
	RelayState     string
	SigAlg         string
	Signature      string
}

func SAMLBindingHTTPRedirectParseRequest

func SAMLBindingHTTPRedirectParseRequest(r *http.Request) (
	result *SAMLBindingHTTPRedirectParseRequestResult,
	err error,
)

type SAMLBindingHTTPRedirectParseResponseResult

type SAMLBindingHTTPRedirectParseResponseResult struct {
	SAMLResponse    string
	SAMLResponseXML string
	RelayState      string
	SigAlg          string
	Signature       string
}

func SAMLBindingHTTPRedirectParseResponse

func SAMLBindingHTTPRedirectParseResponse(r *http.Request) (
	result *SAMLBindingHTTPRedirectParseResponseResult,
	err error,
)

type SAMLBindingHTTPRedirectWriter

type SAMLBindingHTTPRedirectWriter struct {
	Signer SAMLRedirectBindingSigner
}

func (*SAMLBindingHTTPRedirectWriter) WriteRequest

func (s *SAMLBindingHTTPRedirectWriter) WriteRequest(
	rw http.ResponseWriter,
	r *http.Request,
	callbackURL string,
	requestEl *etree.Element,
	relayState string) error

func (*SAMLBindingHTTPRedirectWriter) WriteResponse

func (s *SAMLBindingHTTPRedirectWriter) WriteResponse(
	rw http.ResponseWriter,
	r *http.Request,
	callbackURL string,
	responseEl *etree.Element,
	relayState string) error

type SAMLBindingParseReqeustResult

type SAMLBindingParseReqeustResult interface {
	// contains filtered or unexported methods
}

type SAMLBindingParseResponseResult

type SAMLBindingParseResponseResult interface {
	// contains filtered or unexported methods
}

type SAMLRedirectBindingSigner

type SAMLRedirectBindingSigner interface {
	ConstructSignedQueryParameters(
		relayState string,
		el *saml.SAMLElementToSign,
	) (url.Values, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL