saml

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ACS_HTTP_REDIRECT = 0
	ACS_HTTP_POST     = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ACSBindingType

type ACSBindingType int

type Config

type Config struct {
	Idp *IdpConfig `json:"idp,omitempty" yaml:"idp,omitempty" bson:"idp,omitempty"`
	Sp  *SpConfig  `json:"sp,omitempty" yaml:"sp,omitempty" bson:"sp,omitempty"`
}

func (*Config) Init

func (c *Config) Init() *util.Result

type IdpConfig

type IdpConfig struct {
	MetaData       *IdpMetaData              `json:"meta_data,omitempty" yaml:"meta_data,omitempty" bson:"meta_data,omitempty"`
	ServiceURL     string                    `json:"service_url,omitempty" yaml:"service_url,omitempty" bson:"service_url,omitempty"`
	ServiceBinding string                    `json:"service_binding,omitempty" yaml:"service_binding,omitempty" bson:"service_binding,omitempty"`
	SloUrl         string                    `json:"slo_url,omitempty" yaml:"slo_url,omitempty" bson:"slo_url,omitempty"`
	SloBinding     string                    `json:"slo_binding,omitempty" yaml:"slo_binding,omitempty" bson:"slo_binding,omitempty"`
	EntityID       string                    `json:"entity_id,omitempty" yaml:"entity_id,omitempty" bson:"entity_id,omitempty"`
	CertFile       *string                   `json:"cert_file,omitempty" yaml:"cert_file,omitempty" bson:"cert_file,omitempty"`
	CertStore      dsig.X509CertificateStore `json:"cert_store,omitempty" yaml:"cert_store,omitempty" bson:"cert_store,omitempty"`
}

for manual config of SAML

func (*IdpConfig) GetCertFromFile

func (c *IdpConfig) GetCertFromFile() *util.Result

func (*IdpConfig) Init

func (c *IdpConfig) Init() *util.Result

type IdpMetaData

type IdpMetaData struct {
	Type    IdpMetaDataType         `json:"type,omitempty" yaml:"type,omitempty" bson:"type,omitempty"`
	File    *string                 `json:"file,omitempty" yaml:"file,omitempty" bson:"file,omitempty"`
	Url     *string                 `json:"url,omitempty" yaml:"url,omitempty" bson:"url,omitempty"`
	RawData []byte                  `json:"-" yaml:"-" bson:"-"`
	Data    *types.EntityDescriptor `json:"-" yaml:"-" bson:"-"`
}

func (*IdpMetaData) GetMetaData

func (IdpMetaData) HasData

func (meta IdpMetaData) HasData() bool

type IdpMetaDataType

type IdpMetaDataType int
const (
	IDP_METADATA_NONE IdpMetaDataType = 0
	IDP_METADATA_URL  IdpMetaDataType = 1
	IDP_METADATA_FILE IdpMetaDataType = 2
)

type SpConfig

type SpConfig struct {
	EntityID                  string               `json:"entity_id,omitempty" yaml:"entity_id,omitempty" bson:"entity_id,omitempty"`
	SignAuthnRequests         bool                 `json:"sign_authn_requests,omitempty" yaml:"sign_authn_requests,omitempty" bson:"sign_authn_requests,omitempty"`
	ACSServiceURL             string               `json:"acs_service_url,omitempty" yaml:"acs_service_url,omitempty" bson:"acs_service_url,omitempty"`
	ACSBinding                ACSBindingType       `json:"acs_binding,omitempty" yaml:"acs_binding,omitempty" bson:"acs_binding,omitempty"`
	CertFiles                 *crypto.KeyPairFiles `json:"cert_files,omitempty" yaml:"cert_files,omitempty" bson:"cert_files,omitempty"`
	CertStore                 dsig.X509KeyStore    `json:"cert_store,omitempty" yaml:"cert_store,omitempty" bson:"cert_store,omitempty"`
	ValidateResponseSignature bool                 `` /* 134-byte string literal not displayed */
}

func (*SpConfig) GetCertFromFiles

func (c *SpConfig) GetCertFromFiles() *util.Result

Jump to

Keyboard shortcuts

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