wayfhybrid

package module
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2018 License: MIT Imports: 31 Imported by: 0

README

Go Report Card

wayfhybrid

Wayfhybrid is a WAYF specific SAML hybrid based on wayf-dk/gohybrid

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)

ACSService handles all the stuff related to receiving response and attribute handling

func BirkSLOService

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

BirkSLOService refers to birk single logout service. Takes request as a parameter and returns an error if any

func BirkService

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

BirkService refers to handling the request at Birk

func IdPSLOService

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

IdPSLOService refers to idp single logout service. Takes request as a parameter and returns an error if any

func IdWayfDkACSService

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

func IdWayfDkSSOService

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

func KribSLOService

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

KribSLOService refers to krib single logout service. Takes request as a parameter and returns an error if any

func KribService

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

KribService handles all the request at Krib part. Returns an error if something goes wrong.

func Main

func Main()

func OkService

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

func SLOInfoHandler

func SLOInfoHandler(w http.ResponseWriter, r *http.Request, samlIn, destinationInMd, samlOut, destinationOutMd *goxml.Xp, role int, 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 gosaml.Md, finalIssuerMdSets, finalDestinationMdSets []gosaml.Md, role int, tag string) (err error)

SLOService refers to single logout service. Takes request and issuer and destination metadata sets, role refers to if it as IDP or SP.

func SPSLOService

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

SPSLOService refers to SP single logout service. Takes request as a parameter and returns an error if any

func SSOService

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

SSOService handles single sign on requests

func SloRequest

func SloRequest(w http.ResponseWriter, r *http.Request, response, issuer, destination *goxml.Xp, pk string)

SloRequest generates a single logout request

func SloResponse

func SloResponse(w http.ResponseWriter, r *http.Request, request, issuer, destination *goxml.Xp)

SloResponse generates a single logout reponse

func VeryVeryPoorMansScopingService

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

VeryVeryPoorMansScopingService handles poors man scoping

func WayfKribHandler

func WayfKribHandler(response, birkMd, kribMd *goxml.Xp) (destination string, err error)

Types

type AttributeReleaseData

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

func WayfACSServiceHandler

func WayfACSServiceHandler(idpMd, hubMd, spMd, request, response *goxml.Xp, birk bool) (ard AttributeReleaseData, err error)

type MdSets

type MdSets struct {
	Hub, Internal, ExternalIdP, ExternalSP gosaml.Md
}
var (
	Md MdSets
)

Directories

Path Synopsis
cmd
hybrid command

Jump to

Keyboard shortcuts

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