Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsRequestOriginAllowed ¶
IsRequestOriginAllowed checks if the request URL belongs to the same origin key. The caller can use this to ensure a client with a shared jar is used for the right origin.
func OriginKeyFromAuthority ¶
func OriginKeyFromAuthority(a authority.AuthAuthority) string
OriginKeyFromAuthority derives a normalized origin key from the authority.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager provides shared cookie jars keyed by authorization authority. Each authority gets its own net/http CookieJar to avoid cross-authority leakage.
func NewManager ¶
func NewManager() *Manager
NewManager creates a Manager with an empty set of jars.
Click to show internal directories.
Click to hide internal directories.