Documentation ¶
Index ¶
Constants ¶
const ( ClientIDTODO = "8895e1e5f06644ebb41c26ea5740b246" ClientSecretTODO = "c1e847aef925467290b4302e64f3de4e" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccessTokenResponse ¶
type AccessTokenResponse struct { AccessToken string `json:"access_token"` ExpiresAt int64 `json:"expires_at"` TokenType string `json:"token_type"` RefreshToken string `json:"refresh_token,omitempty"` Scope string `json:"scope,omitempty"` }
AccessTokenResponse holds the JSON response for an access token.
type AuthenticatedUser ¶
type Option ¶
type Option func(*webApp)
Option defines functional option parameters for webApp.
func WithCSRFAuthKey ¶
WithCSRFAuthKey is a functional option to inject a CSRF authentication key
func WithGoAuth2App ¶
WithGoAuth2App is a functional option to inject a goauth2.App.
func WithSessionKeyPair ¶
func WithSessionKeyPair(sessionKeyPairs ...SessionKeyPair) Option
WithSessionKeyPair is a functional option to inject a session key pair.
Useful for rotating session authentication and encryption keys. Old sessions can still be read because the first pair will fail, and the second will be tested.
func WithTemplateFS ¶
WithTemplateFS is a functional option to inject a fs.FS
func WithUUIDGenerator ¶
WithUUIDGenerator is a functional option to inject a shortuuid.Generator.
type SavedEvents ¶
SavedEvents contains events that have been persisted to the event store.
func (*SavedEvents) Contains ¶
func (l *SavedEvents) Contains(events ...rangedb.Event) bool
Contains returns true if all events are found.
func (*SavedEvents) ContainsAny ¶
func (l *SavedEvents) ContainsAny(events ...rangedb.Event) bool
ContainsAny returns true if any events are found.
type SessionKeyPair ¶
SessionKeyPair holds the keys for a secure cookie session.