Skip to content

class TokenEndpoint

cangjie
public class TokenEndpoint <: EndpointHandler

功能:处理令牌端点请求。

父类型:

成员概览

成员功能
init(IClientSecretValidator, ITokenRequestValidator, ITokenResponseGenerator)使用令牌请求依赖项创建令牌端点处理器。
func handle(HttpContext)处理令牌端点请求。

init(IClientSecretValidator, ITokenRequestValidator, ITokenResponseGenerator)

cangjie
public TokenEndpoint(let clientSecretValidator: IClientSecretValidator,
let requestValidator: ITokenRequestValidator, let responseGenerator: ITokenResponseGenerator)

功能:使用令牌请求依赖项创建令牌端点处理器。

参数:

func handle(HttpContext)

cangjie
public func handle(context: HttpContext): IEndpointResult

功能:处理令牌端点请求。

参数:

返回值: