mongo

package
v1.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL