token

package
v0.0.0-...-fbe9a17 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeBearer = "bearer"
	TypeDPoP   = "DPoP"

	Namespace = "https://ftauth.io"
	UserKey   = "user_id"
	ClientKey = "client_id"
)

Supported token types

Variables

This section is empty.

Functions

func IssueAccessToken

func IssueAccessToken(clientInfo *model.ClientInfo, user *model.User, scope string) (*jwt.Token, error)

IssueAccessToken provisions and signs a new JWT for the given client and scopes.

func IssueRefreshToken

func IssueRefreshToken(clientInfo *model.ClientInfo, accessToken *jwt.Token) (*jwt.Token, error)

IssueRefreshToken creates a new refresh token for the given access token.

Types

type Type

type Type string

Type identifies the format of the token.

Jump to

Keyboard shortcuts

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