Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SigningMethod = jwt.SigningMethodHS256
Functions ¶
func HandleAuthorizeRequest ¶
HandleAuthorizeRequest the authorization request handling
func HandleTokenRequest ¶
HandleTokenRequest token request handling
func HandleTokenVerify ¶
func HandleTokenVerify() gin.HandlerFunc
HandleTokenVerify Verify the access token of the middleware
Types ¶
type CustomClaims ¶
type CustomClaims struct { AccessClaims *generates.JWTAccessClaims `json:"-"` ClientID string `json:"client_id"` UserID string `json:"user_id"` Scope string `json:"scope"` }
func (*CustomClaims) Valid ¶
func (c *CustomClaims) Valid() error
type TokenGenerate ¶
type TokenGenerate struct {
// contains filtered or unexported fields
}
func (*TokenGenerate) Token ¶
func (t *TokenGenerate) Token(data *oauth2.GenerateBasic, isGenRefresh bool) (access, refresh string, err error)
Click to show internal directories.
Click to hide internal directories.