Documentation ¶ Index ¶ func New(database string, collection string, field string, endpoint string) api.Authenticator type User Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New(database string, collection string, field string, endpoint string) api.Authenticator New Authenticator with mongo backend Types ¶ type User ¶ type User struct { PasswordHash string `json:"password_hash" bson:"password_hash"` Groups []string `json:"groups,omitempty" bson:"groups,omitempty"` //TODO why not on extraClaims ?? auth.ExtraClaims } User describe an user stored in mongo Source Files ¶ View all Source files mongo.go Click to show internal directories. Click to hide internal directories.