Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultAuthCodeGenerator ¶
type DefaultAuthCodeGenerator struct{}
func (*DefaultAuthCodeGenerator) Generate ¶
func (x *DefaultAuthCodeGenerator) Generate() string
type DefaultTokenGenerator ¶
type DefaultTokenGenerator struct { SigningAlgorithm string PrivateKey *rsa.PrivateKey ClaimsGenerator ITokenClaimsGenerator }
func (*DefaultTokenGenerator) GenerateAccessToken ¶
func (x *DefaultTokenGenerator) GenerateAccessToken(ctx *fasthttp.RequestCtx, grantType string, client model.IClient, scopes []string, username string) (string, error)
func (*DefaultTokenGenerator) GenerateRefreshToken ¶
func (x *DefaultTokenGenerator) GenerateRefreshToken() string
type IAuthCodeGenerator ¶
type IAuthCodeGenerator interface {
Generate() string
}
func NewDefaultAuthCodeGenerator ¶
func NewDefaultAuthCodeGenerator() IAuthCodeGenerator
type ITokenClaimsGenerator ¶
type ITokenGenerator ¶
type ITokenGenerator interface { GenerateAccessToken(ctx *fasthttp.RequestCtx, grantType string, client model.IClient, scopes []string, username string) (string, error) GenerateRefreshToken() string }
func NewDefaultTokenGenerator ¶
func NewDefaultTokenGenerator(privateKey *rsa.PrivateKey, signingAlgorithm string, claimsGenerator ITokenClaimsGenerator) ITokenGenerator
Click to show internal directories.
Click to hide internal directories.