Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAuthWithConfig ¶
func CheckAuthWithConfig(cfg Config) echo.MiddlewareFunc
func LoginSkipper ¶
func LoginSkipper(prefix string) middleware.Skipper
LoginSkipper used to avoid running middleware for login requests
func MustRandomState ¶
MustRandomState returns a base64 encoded random 32 byte string.
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
Auth authentication related handlers
func NewAuth ¶
func NewAuth(ac *flags.API, providerFunc ProviderFunc) (*Auth, error)
NewAuth new auth server http handlers
func (*Auth) RegisterRoutes ¶
func (l *Auth) RegisterRoutes(r interface { GET(string, echo.HandlerFunc, ...echo.MiddlewareFunc) *echo.Route })
RegisterRoutes register the login related auth routes
type Config ¶
type Config struct {
Skipper middleware.Skipper
}
type ProviderFunc ¶
Click to show internal directories.
Click to hide internal directories.