Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMissingJwtToken = errors.Unauthorized(reason, "JWT token is missing") ErrTokenInvalid = errors.Unauthorized(reason, "Token is invalid") ErrTokenInvalid2 = errors.Unauthorized(reason, "22222 is invalid") ErrTokenClaim = errors.Unauthorized(reason, "Token claim error") ErrWrongContext = errors.Unauthorized(reason, "Wrong context for middleware") )
Functions ¶
func NewCasDoorClientConfig ¶
func NewCasDoorClientConfig(clientConfig *CasDoorClientConfig) (*casdoorsdk.Client, error)
Types ¶
type CasDoorClient ¶
type CasDoorClient struct {
Client *casdoorsdk.Client
}
func NewCasDoorClient ¶
func NewCasDoorClient(clientConfig *CasDoorClientConfig) (*CasDoorClient, error)
func (*CasDoorClient) CasDoorJWT ¶
func (c *CasDoorClient) CasDoorJWT() middleware.Middleware
func (*CasDoorClient) CustomerJWT ¶
func (c *CasDoorClient) CustomerJWT() middleware.Middleware
func (*CasDoorClient) GetOAuthToken ¶
func (c *CasDoorClient) GetOAuthToken(code, state string) *oauth2.Token
type CasDoorClientConfig ¶
type Claims ¶
type Claims *casdoorsdk.Claims
Click to show internal directories.
Click to hide internal directories.