Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SupportedForms = map[string]struct { Title string Tabs []formTab Intro string }{ "error": { Title: "Account management error", Intro: `There was an error. If it persists, please <a href="https://github.com/letsblockit/letsblockit/issues">open an issue</a>.`, }, "login": { Title: "Log into your account", Tabs: loginTabs, }, "recovery": { Title: "Recover your account", Tabs: loginTabs, Intro: `Enter your e-mail below, we will send you a recovery link from <code>no-reply@ory.sh</code> to login and set a new password.`, }, "registration": { Title: "Create a new account", Tabs: loginTabs, }, "settings": { Title: "Account settings", Intro: `You can change your e-mail or password here. If you change your e-mail, you will receive a new validation e-mail.`, }, "verification": { Title: "Verify your account", }, } )
Functions ¶
func HasAccount ¶
Types ¶
type Backend ¶
type Backend interface {
BuildMiddleware() echo.MiddlewareFunc
RegisterRoutes(group *echo.Group)
}
type OryBackend ¶
type OryBackend struct {
// contains filtered or unexported fields
}
OryBackend is used for the Kratos auth method. It is used by the official instance with Ory Cloud. It should work with a self-hosted Kratos, but this has not been tested.
func NewOryBackend ¶
func NewOryBackend(rootUrl string, renderer renderer, statsd statsd.ClientInterface) *OryBackend
func (*OryBackend) BuildMiddleware ¶
func (o *OryBackend) BuildMiddleware() echo.MiddlewareFunc
BuildMiddleware tries to resolve an Ory Cloud session from the cookies. If it succeeds, a "user" value is added to the context for use by handlers.
func (*OryBackend) RegisterRoutes ¶
func (o *OryBackend) RegisterRoutes(group *echo.Group)
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy is used to run the server being an authenticating proxy. It expects an HTTP header to be set by the proxy, and uses its value as the unique user ID.
func (*Proxy) BuildMiddleware ¶
func (e *Proxy) BuildMiddleware() echo.MiddlewareFunc
func (*Proxy) RegisterRoutes ¶
Click to show internal directories.
Click to hide internal directories.