Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessGenerate ¶
type AccessGenerate struct { }
AccessGenerate generate the access token
func NewAccessGenerate ¶
func NewAccessGenerate() *AccessGenerate
NewAccessGenerate create to generate the access token instance
type AuthorizeGenerate ¶
type AuthorizeGenerate struct{}
AuthorizeGenerate generate the authorize code
func NewAuthorizeGenerate ¶
func NewAuthorizeGenerate() *AuthorizeGenerate
NewAuthorizeGenerate create to generate the authorize code instance
func (*AuthorizeGenerate) Token ¶
func (ag *AuthorizeGenerate) Token(data *oauth2.GenerateBasic) (code string, err error)
Token based on the UUID generated token
type JWTAccessClaims ¶
type JWTAccessClaims struct { ClientID string `json:"client_id,omitempty"` UserID string `json:"user_id,omitempty"` ExpiredAt int64 `json:"expired_at,omitempty"` }
JWTAccessClaims jwt claims
type JWTAccessGenerate ¶
type JWTAccessGenerate struct { SignedKey []byte SignedMethod jwt.SigningMethod }
JWTAccessGenerate generate the jwt access token
func NewJWTAccessGenerate ¶
func NewJWTAccessGenerate(key []byte, method jwt.SigningMethod) *JWTAccessGenerate
NewJWTAccessGenerate create to generate the jwt access token instance
Click to show internal directories.
Click to hide internal directories.