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 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 ¶
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 (meta *IdpMetaData) GetMetaData() (*types.EntityDescriptor, dsig.X509CertificateStore, *util.Result)
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 ¶
Click to show internal directories.
Click to hide internal directories.