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 ¶
IssueRefreshToken creates a new refresh token for the given access token.
Types ¶
Click to show internal directories.
Click to hide internal directories.