json

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

New returns a new auth Manager.

Types

type Credentials

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

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