memory

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSOStateStore

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

SSOStateStore is an in-memory CSRF state store for SSO. Suitable for local/dev and tests only — not safe across horizontally scaled control-plane replicas. Prefer adapters/redis.SSOStateStore in production.

func NewSSOStateStore

func NewSSOStateStore(ttl time.Duration) *SSOStateStore

func (*SSOStateStore) Put

func (s *SSOStateStore) Put(_ context.Context, state string, value identity.SSOState) error

func (*SSOStateStore) Take

func (s *SSOStateStore) Take(_ context.Context, state string) (identity.SSOState, error)

Jump to

Keyboard shortcuts

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