Documentation ¶ Index ¶ func NewBasic(username, password string, next http.Handler) http.Handler func NewOIDC(ctx context.Context, cfg Config, next http.Handler) (http.Handler, error) func WithUser(ctx context.Context, user User) context.Context type Config type User func UserFromContext(ctx context.Context) *User Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewBasic ¶ func NewBasic(username, password string, next http.Handler) http.Handler func NewOIDC ¶ func NewOIDC(ctx context.Context, cfg Config, next http.Handler) (http.Handler, error) func WithUser ¶ func WithUser(ctx context.Context, user User) context.Context Types ¶ type Config ¶ type Config struct { IssuerURL string ClientID string ClientSecret string ServerURL string // optional } type User ¶ type User struct { Name string } func UserFromContext ¶ func UserFromContext(ctx context.Context) *User Source Files ¶ View all Source files basic.go context.go oidc.go Click to show internal directories. Click to hide internal directories.