saml

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	SSOURL   string
	EntityID string
	Certs    string
	ACSURL   string
}

type CookieManager

type CookieManager interface {
	SetAuthTokenCookie(w http.ResponseWriter, userID, email, sessionID, host string, extraClaims map[string]any) error
	ClearCookies(w http.ResponseWriter) error
}

type EventRecorder

type EventRecorder interface {
	Record(string)
}

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func New

func New(cfg Config, er EventRecorder, cm CookieManager) (*Provider, error)

func (*Provider) HandleCallback

func (p *Provider) HandleCallback(w http.ResponseWriter, req *http.Request)

func (*Provider) RequestLogin

func (p *Provider) RequestLogin(w http.ResponseWriter, req *http.Request, origURL string)

Jump to

Keyboard shortcuts

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