localtrust

package

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateToken

func GenerateToken(info user.Info) (string, error)

GenerateToken to generate token for local trust authenticator.

func NewLocalTrustAuthenticator

func NewLocalTrustAuthenticator() authenticator.Token

NewLocalTrustAuthenticator returns an authenticator.Request.

Types

type User

type User struct {
	Name   string              `json:"name"`
	UID    string              `json:"uid"`
	Groups []string            `json:"groups"`
	Extra  map[string][]string `json:"extra"`
}

User defines the user info.

Jump to

Keyboard shortcuts

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