Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMissingCredentials = errors.New("missing credentials") ErrInvalidCredentials = errors.New("invalid credentials") )
View Source
var GetAuth = httpauth.GetAuth
View Source
var LoginBoxStyle = ui.MustParseStyle(`
display: flex;
flex-direction: column;
justify-content: center;
height: 100%;
padding: 0 var(--size-5);
font-size: var(--font-size-2);
h2 {
font-size: var(--font-size-5);
font-weight: var(--font-weight-4);
}
@media (min-width: 1024px) {
& {
padding: 0 var(--size-9);
}
}
@media (min-width: 1920px) {
& {
padding: 0 var(--size-13);
}
}
& .buttons {
display: flex;
flex-direction: row;
justify-content: flex-end;
}
& .error {
margin: var(--size-3) 0;
}
`)
View Source
var LoginInputStyle = ui.MustParseStyle(`
margin: var(--size-7) 0;
`)
Functions ¶
func WebAuthFlagSet ¶
func WebAuthFlagSet(defaultIssuer string) (*flag.FlagSet, func() WebAuthConfig)
Types ¶
type AuthenticatedPath ¶ added in v0.0.3
func ConstantPath ¶ added in v0.0.3
func ConstantPath(path string) AuthenticatedPath
type WebAuth ¶
type WebAuth struct {
// contains filtered or unexported fields
}
func NewWebAuth ¶
func NewWebAuth( factory *ldap.Factory, config WebAuthConfig, options WebAuthOptions, logger *slog.Logger, ) (*WebAuth, error)
func (*WebAuth) Metrics ¶ added in v0.0.3
func (wa *WebAuth) Metrics() []prometheus.Collector
Metrics implements observability.Metrics.
type WebAuthConfig ¶
type WebAuthConfig struct {
JWTAuth httpauth.JWTAuthConfig
ResetPasswordURL string
}
type WebAuthOptions ¶
type WebAuthOptions struct {
LoginPath string
LogoutPath string
ReturnPath AuthenticatedPath
App string
}
Click to show internal directories.
Click to hide internal directories.