Documentation
¶
Index ¶
- type Authenticator
- func (a Authenticator) Callback(c *echo.Context) error
- func (a Authenticator) Login(c *echo.Context) error
- func (a Authenticator) Logout(c *echo.Context) error
- func (a Authenticator) Middleware(next echo.HandlerFunc) echo.HandlerFunc
- func (a Authenticator) NativeLogin(c *echo.Context) error
- func (a Authenticator) Session(c *echo.Context) error
- func (a Authenticator) Subject(ctx context.Context, request *http.Request) (string, error)
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator struct {
Mode string
Environment string
StaticToken string
Introspection string
ClientID string
ClientSecret string
AuthorizationURL string
TokenURL string
RedirectURL string
NativeRedirectURL string
FrontendURL string
SessionCookieName string
LoginStateCookieName string
SessionCookieMaxAge int
SecureCookies bool
Scopes []string
RequiredRole string
RoleClaim string
HTTPClient *http.Client
}
func (Authenticator) Middleware ¶
func (a Authenticator) Middleware(next echo.HandlerFunc) echo.HandlerFunc
func (Authenticator) NativeLogin ¶
func (a Authenticator) NativeLogin(c *echo.Context) error
type Server ¶
type Server struct {
Videos store.Repository
Media media.ObjectStore
Jobs encoding.JobDispatcher
}
func (*Server) HandleEncodingEvent ¶
Click to show internal directories.
Click to hide internal directories.