Documentation ¶
Index ¶
- Constants
- Variables
- func InsufficientAuthentication(args ...string) error
- func InvalidClient(args ...string) error
- func InvalidGrant(args ...string) error
- func InvalidRequest(args ...string) error
- func InvalidScope(args ...string) error
- func InvalidToken(args ...string) error
- func OAuth2AccessDenied(args ...string) error
- func UnsupportedGrantType(args ...string) error
Constants ¶
View Source
const ( TokenInvalid = "S0001" TokenExpired = "S0002" )
Token Code
View Source
const ( InvalidRequestCode = "invalid_request" InvalidClientCode = "invalid_client" InvalidTokenCode = "invalid_token" InvalidScopeCode = "invalid_scope" InvalidGrantCode = "invalid_grant" InsufficientScopeCode = "insufficient_scope" UnsupportedGrantTypeCode = "unsupported_grant_type" UnsupportedResponseTypeCode = "unsupported_response_type" AccessDeniedCode = "access_denied" )
OAuth2 error code
Variables ¶
View Source
var ( // ErrInvalidToken for auth ErrInvalidToken = coreErrors.New(http.StatusUnauthorized, InvalidTokenCode, "Token invalid") // ErrExpiredToken for auth ErrExpiredToken = coreErrors.New(http.StatusUnauthorized, TokenExpired, "Token expired") )
Functions ¶
func InsufficientAuthentication ¶
InsufficientAuthentication 不充足的认证
func UnsupportedGrantType ¶
UnsupportedGrantType 不支持的 grant type
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.