auth

package
v0.0.0-...-2e53e79 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadState     = errors.New("state does not match")
	ErrInvalidToken = errors.New("refresh token is invalid")
	ErrUnknownUser  = errors.New("user unknown")
)

Functions

func New

func New(cfg Config) *service

Types

type Config

type Config struct {
	ClientID     string   `yaml:"clientID"`
	ClientSecret string   `yaml:"clientSecret"`
	KnownUsers   []string `yaml:"known_users"`
	Scopes       []string `yaml:"scopes"`
}

Jump to

Keyboard shortcuts

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