samlslosession

package
v0.0.0-...-ee57881 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DependencySet = wire.NewSet(
	wire.Struct(new(StoreRedis), "*"),
)
View Source
var ErrNotFound = errors.New("saml slo session entry not found")

Functions

This section is empty.

Types

type SAMLSLOSession

type SAMLSLOSession struct {
	ID    string               `json:"id,omitempty"`
	Entry *SAMLSLOSessionEntry `json:"entry,omitempty"`
}

func NewSAMLSLOSession

func NewSAMLSLOSession(entry *SAMLSLOSessionEntry) *SAMLSLOSession

type SAMLSLOSessionEntry

type SAMLSLOSessionEntry struct {
	PendingLogoutServiceProviderIDs []string                 `json:"pending_logout_service_provider_ids,omitempty"`
	LogoutRequestXML                string                   `json:"logout_request_xml,omitempty"`
	ResponseBinding                 samlprotocol.SAMLBinding `json:"response_binding,omitempty"`
	CallbackURL                     string                   `json:"callback_url,omitempty"`
	RelayState                      string                   `json:"relay_state,omitempty"`
	SID                             string                   `json:"sid,omitempty"`
	UserID                          string                   `json:"user_id,omitempty"`
	IsPartialLogout                 bool                     `json:"is_partial_logout,omitempty"`
	PostLogoutRedirectURI           string                   `json:"post_logout_redirect_uri,omitempty"`
}

func (*SAMLSLOSessionEntry) LogoutRequest

func (s *SAMLSLOSessionEntry) LogoutRequest() (*samlprotocol.LogoutRequest, bool)

type StoreRedis

type StoreRedis struct {
	Redis *appredis.Handle
	AppID config.AppID
}

func (*StoreRedis) Delete

func (s *StoreRedis) Delete(ctx context.Context, sessionID string) (err error)

func (*StoreRedis) Get

func (s *StoreRedis) Get(ctx context.Context, sessionID string) (entry *SAMLSLOSession, err error)

func (*StoreRedis) Save

func (s *StoreRedis) Save(ctx context.Context, session *SAMLSLOSession) (err error)

Jump to

Keyboard shortcuts

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