auth

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RequestToken internal.ContextKey

Functions

This section is empty.

Types

type Token

type Token struct {
	ID         string
	Groups     TokenGroups
	Attributes map[TokenAttribute]*string
}

func (Token) Email

func (t Token) Email() string

func (Token) Name

func (t Token) Name() string

func (Token) Username

func (t Token) Username() string

type TokenAttribute

type TokenAttribute string
const (
	TokenSurnameAttribute   TokenAttribute = "surname"
	TokenGivenNameAttribute TokenAttribute = "given_name"
	TokenNameAttribute      TokenAttribute = "name"
	TokenEmailAttribute     TokenAttribute = "email"
	TokenUsernameAttribute  TokenAttribute = "username"
)

type TokenGroups added in v0.12.0

type TokenGroups []string

func (TokenGroups) Contains added in v0.12.0

func (tg TokenGroups) Contains(expected string) bool

func (TokenGroups) Matches added in v0.12.0

func (tg TokenGroups) Matches(expected string) bool

Jump to

Keyboard shortcuts

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