Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Domain string `json:"domain,omitempty" xml:"domain,omitempty" yaml:"domain,omitempty"` Path string `json:"path,omitempty" xml:"path,omitempty" yaml:"path,omitempty"` Lifetime int `json:"lifetime,omitempty" xml:"lifetime,omitempty" yaml:"lifetime,omitempty"` Insecure bool `json:"insecure,omitempty" xml:"insecure,omitempty" yaml:"insecure,omitempty"` SameSite string `json:"same_site,omitempty" xml:"same_site,omitempty" yaml:"same_site,omitempty"` }
Config represents a common set of configuration settings applicable to the cookies issued by authn.Authenticator.
type Factory ¶
type Factory struct { Referer string `json:"referer,omitempty" xml:"referer,omitempty" yaml:"referer,omitempty"` SessionID string `json:"session_id,omitempty" xml:"session_id,omitempty" yaml:"session_id,omitempty"` SandboxID string `json:"sandbox_id,omitempty" xml:"sandbox_id,omitempty" yaml:"sandbox_id,omitempty"` // contains filtered or unexported fields }
Factory holds configuration and associated finctions for the cookies issued by authn.Authenticator.
func NewFactory ¶
NewFactory returns an instance of cookie factory.
func (*Factory) GetDeleteCookie ¶
GetDeleteCookie returns raw cookie with attributes for delete action.
func (*Factory) GetDeleteSessionCookie ¶
GetDeleteSessionCookie returns raw cookie with attributes for delete action for session id cookie.
func (*Factory) GetSessionCookie ¶
GetSessionCookie return cookie holding session information
Click to show internal directories.
Click to hide internal directories.