gohybrid

package module
v0.0.0-...-6291852 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2017 License: MIT Imports: 17 Imported by: 0

README

Build Status

gohybrid

Gohybrid is an early prototype of a hybrid SAML 2.0 hub ie. a SAML engine that looks like a hub internally and a mesh externally

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ACSService

func ACSService(w http.ResponseWriter, r *http.Request) (err error)

func BirkSLOService

func BirkSLOService(w http.ResponseWriter, r *http.Request) (err error)

func BirkService

func BirkService(w http.ResponseWriter, r *http.Request) (err error)

func Config

func Config(configuration Conf)

func IdPSLOService

func IdPSLOService(w http.ResponseWriter, r *http.Request) (err error)

func KribSLOService

func KribSLOService(w http.ResponseWriter, r *http.Request) (err error)

func KribService

func KribService(w http.ResponseWriter, r *http.Request) (err error)

func SLOInfoHandler

func SLOInfoHandler(w http.ResponseWriter, r *http.Request, samlIn, samlOut, destination *goxml.Xp, tag string) (sloinfo *gosaml.SLOInfo, err error)

Saves or retrieves the SLO info relevant to the contents of the samlMessage For now uses cookies to keep the SLOInfo

func SLOService

func SLOService(w http.ResponseWriter, r *http.Request, issuerMdSet, destinationMdSet, finalIssuerMdSet, finalDestinationMdSet gosaml.Md, role int, tag string) (err error)

func SPSLOService

func SPSLOService(w http.ResponseWriter, r *http.Request) (err error)

func SSOService

func SSOService(w http.ResponseWriter, r *http.Request) (err error)

Types

type AttributeReleaseData

type AttributeReleaseData struct {
	Values            map[string][]string
	IdPDisplayName    map[string]string
	SPDisplayName     map[string]string
	SPDescription     map[string]string
	SPEntityID        string
	Key               string
	Hash              string
	NoConsent         bool
	ConsentAsAService string
}

type Conf

type Conf struct {
	DiscoveryService                       string
	Domain                                 string
	HubEntityID                            string
	EptidSalt                              string
	HubRequestedAttributes                 *goxml.Xp
	Internal, ExternalIdP, ExternalSP, Hub gosaml.Md
	SecureCookieHashKey                    string
	PostFormTemplate                       string
	AttributeReleaseTemplate               string
	Basic2uri                              map[string]string
	StdTiming                              gosaml.IdAndTiming
	ElementsToSign                         []string
	Certpath                               string
	SSOServiceHandler                      func(*goxml.Xp, *goxml.Xp, *goxml.Xp, *goxml.Xp) (string, string, string, error)
	BirkHandler                            func(*goxml.Xp, *goxml.Xp, *goxml.Xp) (*goxml.Xp, *goxml.Xp, error)
	ACSServiceHandler                      func(*goxml.Xp, *goxml.Xp, *goxml.Xp, *goxml.Xp, *goxml.Xp) (AttributeReleaseData, error)
	KribServiceHandler                     func(*goxml.Xp, *goxml.Xp, *goxml.Xp) (string, error)
	DeKribify                              func(string) string
	SLOStore                               gosaml.SLOInfoMap
	Session                                HybridSession
}

Jump to

Keyboard shortcuts

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