saml

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InitRequest

type InitRequest struct {
	RequestID  string
	SPEntityID string
	Now        time.Time
}

type InitResponse

type InitResponse struct {
	SAMLRequest     string
	InitiateRequest string
}

func Init

func Init(req *InitRequest) *InitResponse

type ParseMetadataResponse

type ParseMetadataResponse struct {
	IDPEntityID    string
	IDPCertificate *x509.Certificate
	RedirectURL    string
}

func ParseMetadata

func ParseMetadata(b []byte) (*ParseMetadataResponse, error)

type ValidateError

type ValidateError struct {
	RequestID   string
	AssertionID string
	Assertion   string

	MalformedAssertion    bool
	UnsignedAssertion     bool
	ExpiredAssertion      bool
	BadIDPEntityID        *string
	BadSPEntityID         *string
	BadSignatureAlgorithm *string
	BadDigestAlgorithm    *string
	BadCertificate        *x509.Certificate
}

func (*ValidateError) Error

func (e *ValidateError) Error() string

type ValidateRequest

type ValidateRequest struct {
	SAMLResponse   string
	IDPCertificate *x509.Certificate
	IDPEntityID    string
	SPEntityID     string
	Now            time.Time
}

type ValidateResponse

type ValidateResponse struct {
	RequestID         string
	AssertionID       string
	Assertion         string
	SubjectID         string
	SubjectAttributes map[string]string
}

func Validate

func Validate(req *ValidateRequest) (*ValidateResponse, error)

Directories

Path Synopsis
Package uxml implements a subset of XML for SAML.
Package uxml implements a subset of XML for SAML.

Jump to

Keyboard shortcuts

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