kkusaml

package module
v0.0.0-...-2f82139 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2019 License: MIT Imports: 17 Imported by: 0

README

go-kku-saml

KKU's SSO service provider in GO lang

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// SAMLSP for SAML service provider
	SAMLSP *saml2.SAMLServiceProvider
)

Functions

func LoadCertificateStore

func LoadCertificateStore(path string) dsig.X509CertificateStore

func LoadKeyStore

func LoadKeyStore(certPath, keyPath string) (ks dsig.TLSCertKeyStore)

func LoadRawResponse

func LoadRawResponse(path string) string

func LoadXMLResponse

func LoadXMLResponse(path string) string

func NewSAML

func NewSAML(idpMetadataURL string, issuerURL string, audienceURL string, callbackURL string, spCertPath string, spPrivKeyPath string) (err error)

NewSAML creates a new SAML service provider.

Types

type ProviderTestScenario

type ProviderTestScenario struct {
	ScenarioName     string
	Response         string
	ServiceProvider  *saml2.SAMLServiceProvider
	CheckError       func(*testing.T, error)
	CheckWarningInfo func(*testing.T, *saml2.WarningInfo)
}

Jump to

Keyboard shortcuts

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