Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Expiration time.Duration Keys webkeys.WebKeysConfig }
Config - Holds the configuration for the session cookie created after registration or logging in
type SessionController ¶ added in v0.2.3
func NewSessionController ¶ added in v0.2.3
func NewSessionController(logger logging.Logger, identities identities.Service, stime stime.TimeService) SessionController
type SessionJwt ¶
type SessionService ¶
type SessionService interface { Generate(r *http.Request, Session Session) (string, error) GenerateCookie(r *http.Request, session Session) (*http.Cookie, error) }
SessionService - Generates the tokens for their fully logged in session.
func NewSessionService ¶
func NewSessionService(time stime.TimeService, jweService jwe.JWEService, config Config) SessionService
NewSessionService - Creates a default instance of a SessionService
Click to show internal directories.
Click to hide internal directories.