md

package
v0.0.0-...-d2687f3 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonDescriptor

type CommonDescriptor struct {
	CacheDuration int
	ID            string
	Name          string
	ValidUntil    time.Time
}

type ContactPerson

type ContactPerson struct {
	Type            string
	Company         string
	GivenName       string
	SurName         string
	EmailAddress    string
	TelephoneNumber string
}

func (ContactPerson) MakeXMLNode

func (cp ContactPerson) MakeXMLNode(doc types.Document) (types.Node, error)

type EntityDescriptor

type EntityDescriptor interface {
	saml.MakeXMLNoder

	CacheDuration() int
	ID() string
	Name() string
	ProtocolSupportEnumerations() []string
	ValidUntil() time.Time
}

type IDPDescriptor

type IDPDescriptor struct {
	RoleDescriptor
	SSODescriptor

	ContactPerson *ContactPerson
	KeyDescriptor *KeyDescriptor

	// WantAuthnRequestsSigned is an optional attribute that indicates a
	// requirement for the <samlp:AuthnRequest> messages received by this
	// identity provider to be signed. If omitted, the value is assumed to
	// be false.
	WantAuthnRequestsSigned bool
	// SignleSingOnService holds one or more elements of type EndpointType
	// that describe endpoints that support the profiles of the Authentication
	// Request protocol defined in [SAMLProf]. All identity providers support
	// at least one such endpoint, by definition. The ResponseLocation attribute
	// MUST be omitted.
	SingleSignOnService []saml.Endpoint
	// NameIDMappingService holds zero or more elements of type EndpointType
	// that describe endpoints that support the Name Identifier Mapping profile
	// defined in [SAMLProf]. The ResponseLocation attribute MUST be omitted
	NameIDMappingService []saml.Endpoint
	// AssertionIDRequestService holds zero or more elements of type EndpointType
	// that describe endpoints that support the profile of the Assertion Request
	// protocol defined in [SAMLProf] or the special URI binding for assertion
	// requests defined in [SAMLBind].
	AssertionIDRequestService []saml.Endpoint
	// AttributeProfile holds zero or more elements of type anyURI that enumerate
	// the attribute profiles supported by this identity provider. See [SAMLProf]
	// for some possible values for this element.
	AttributeProfile []string
	// Attribute holds zero or more elements that identify the SAML attributes
	// supported by the identity provider.  Specific values MAY optionally be
	// included, indicating that only certain values permitted by the attribute's
	// definition are supported. In this context, "support" for an attribute
	// means that the identity provider has the capability to include it when
	// delivering assertions during single sign-on.
	Attribute []saml.Attribute
}

func (IDPDescriptor) CacheDuration

func (id IDPDescriptor) CacheDuration() int

func (IDPDescriptor) ID

func (id IDPDescriptor) ID() string

func (IDPDescriptor) MakeXMLNode

func (desc IDPDescriptor) MakeXMLNode(doc types.Document) (types.Node, error)

func (IDPDescriptor) Name

func (id IDPDescriptor) Name() string

func (IDPDescriptor) ProtocolSupportEnumerations

func (id IDPDescriptor) ProtocolSupportEnumerations() []string

func (IDPDescriptor) SingleLogoutServices

func (desc IDPDescriptor) SingleLogoutServices() []saml.Endpoint

func (IDPDescriptor) ValidUntil

func (id IDPDescriptor) ValidUntil() time.Time

type KeyDescriptor

type KeyDescriptor struct {
	Use string
	Key saml.MakeXMLNoder
}

func (KeyDescriptor) MakeXMLNode

func (kd KeyDescriptor) MakeXMLNode(doc types.Document) (types.Node, error)

type Metadata

type Metadata struct {
	EntityDescriptors []EntityDescriptor
}

func (Metadata) MakeXMLNode

func (m Metadata) MakeXMLNode(doc types.Document) (types.Node, error)

func (Metadata) Serialize

func (m Metadata) Serialize() (string, error)

type RoleDescriptor

type RoleDescriptor struct {
	CommonDescriptor
	ErrorURL                    string
	ProtocolSupportEnumerations []string
}

type SPDescriptor

type SPDescriptor struct {
	CommonDescriptor

	Service saml.AssertionConsumerService
}

type SSODescriptor

type SSODescriptor struct {
	ArtifactResolutionService []saml.IndexedEndpoint
	SingleLogoutService       []saml.Endpoint
	ManageNameIDService       []saml.Endpoint
	NameIDFormat              nameid.Format
}

Jump to

Keyboard shortcuts

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