json

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(m map[string]interface{}) (auth.Manager, error)

New returns a new auth Manager.

Types

type Credentials

type Credentials struct {
	ID           *user.UserId `mapstructure:"id" json:"id"`
	Username     string       `mapstructure:"username" json:"username"`
	Mail         string       `mapstructure:"mail" json:"mail"`
	MailVerified bool         `mapstructure:"mail_verified" json:"mail_verified"`
	DisplayName  string       `mapstructure:"display_name" json:"display_name"`
	Secret       string       `mapstructure:"secret" json:"secret"`
	Groups       []string     `mapstructure:"groups" json:"groups"`
}

Credentials holds a pair of secret and userid

Jump to

Keyboard shortcuts

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