Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // 错误请求 ErrorBadRequest = errors.New("invalid request parameter") // 错误的授权类型 ErrorGrantTypeRequest = errors.New("invalid request grant type") // 错误的令牌 ErrorTokenRequest = errors.New("invalid request token") // 无效的客户端请求 ErrInvalidClientRequest = errors.New("invalid client message") )
传输层,对外暴露项目的服务接口
Functions ¶
func MakeHttpHandler ¶
func MakeHttpHandler(ctx context.Context, endpoints endpoint.OAuth2Endpoints, tokenService service.TokenService, clientService service.ClientDetailsService, logger log.Logger) http.Handler
创建http处理器
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.