Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Expiration time.Duration
Keys webkeys.WebKeysConfig
EnablePutSession bool
}
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, service SessionService) SessionController
type SessionJwt ¶
type SessionService ¶
type SessionService interface {
GetDetails(claims tmw.TumblerClaims) (*client.SessionDetails, error)
ChangeDetails(req *http.Request, claims tmw.TumblerClaims, updates client.ChangeSessionDetails) (*client.SessionDetails, *http.Cookie, error)
}
SessionService - Generates the tokens for their fully logged in session.
func NewSessionService ¶
func NewSessionService(logger logging.Logger, identities identities.Service, service TokenService, credentials credentials.CredentialsService, config Config) SessionService
NewSessionService - Creates a default instance of a SessionService
type TokenService ¶ added in v0.3.2
type TokenService interface {
Generate(r *http.Request, Session Session) (string, error)
GenerateCookie(r *http.Request, session Session) (*http.Cookie, error)
}
TokenService - Generates the tokens for their fully logged in session.
func NewTokenService ¶ added in v0.3.2
func NewTokenService(time stime.TimeService, jweService jwe.JWEService, config Config) TokenService
NewTokenService - Creates a default instance of a SessionService
Click to show internal directories.
Click to hide internal directories.