Documentation
¶
Index ¶
Constants ¶
View Source
const ( ModeNone = "none" ModeBearer = "bearer" )
View Source
const CookieName = "moltnet_auth"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Claims ¶
type Claims struct {
TokenID string
// contains filtered or unexported fields
}
func (Claims) AllowsAgent ¶
type Config ¶
type Config struct {
Mode string
ListenAddr string
AllowedOrigins []string
TrustForwardedProto bool
Tokens []TokenConfig
}
type Policy ¶
type Policy struct {
// contains filtered or unexported fields
}
func (*Policy) AuthenticateRequest ¶
Click to show internal directories.
Click to hide internal directories.