package
Version:
v0.0.0-...-d450093
Opens a new window with list of versions in this module.
Published: Aug 9, 2023
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
FromContext returnes the user id from a context that was called insinde the
Middleware.
Auth authentivates a request using the whoami view.
New creates a new Auth instance.
Authenticate returns an context that can be used by auth.FromContext().
Backend gives the sessionData for a sessionID
type Configer interface {
ConfigValue(key string, v interface{}) error
}
Configer returns the value for a config name.
Error is returned, when something goes wrong in the auth code.
Fake implements the http.Auther interface but always returns the same user
id.
Authenticate returns a context with the user id the Faker was initiaized
with.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.