account

package
v3.15.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component added in v3.12.0

type Component interface {
	Context() context.Context
	RateLimiter() ratelimit.Interface
}

Component represents the Component to the Account app.

type Server

type Server interface {
	web.Registerer

	Login(c echo.Context) error
	CurrentUser(c echo.Context) error
	Logout(c echo.Context) error
}

Server is the interface for the account app server.

func NewServer

func NewServer(c Component, store Store, config oauth.Config, cspFunc func(config *oauth.Config, nonce string) string) Server

NewServer returns a new account app on top of the given store.

type Store

type Store interface {
	// UserStore, LoginTokenStore and UserSessionStore are needed for user login/logout.
	store.UserStore
	store.LoginTokenStore
	store.UserSessionStore
}

Store used by the account app.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL