tokenstore

package
v0.0.0-...-1502ea1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token map[string]string

type TokenInfo

type TokenInfo struct {
	User         *userdb.User
	ClientID     string
	Scopes       map[string]bool
	RedirectURL  string
	State        string
	Nonce        string
	ResponseType string
}

type TokenStore

type TokenStore interface {
	Put(clientID string, tk Token) string
	Get(clientID string, code string) (Token, error)

	NewToken(ti *TokenInfo) (Token, error)
}

func New

func New(issuerURL string, ks keystore.KeyStore) TokenStore

Jump to

Keyboard shortcuts

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