oauth2

package
v0.0.1-0...-6deec57 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllScopes = []Scope{ScopeAll}

Functions

This section is empty.

Types

type Scope

type Scope string
const (
	ScopeAll       Scope = "all"
	ScopeUserRead  Scope = "user_read"
	ScopeUserWrite Scope = "user_write"
)

type TokenProvider

type TokenProvider interface {
	RetrievePasswordCredentialsToken(ctx context.Context, clientID, clientSecret, email string, scopes []Scope) (*oauth2.Token, error)
}

func NewCredentialsAuthenticator

func NewCredentialsAuthenticator(host string, port int, secretKey string) TokenProvider

Jump to

Keyboard shortcuts

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