第60章 设备流交互服务 - Identity Server 4 中文文档(v1.0.0)

IDeviceFlowInteractionService接口旨在提供用户界面用于在设备流授权期间与IdentityServer通信的服务。它可以从依赖注入系统获得,通常作为构造函数参数注入到IdentityServer的用户界面的MVC控制器中。

60.1 IDeviceFlowInteractionService的APIs

  • GetAuthorizationContextAsync
    基于userCode返回DeviceFlowAuthorizationRequest传递给登录或同意页面。

  • DeviceFlowInteractionResult
    完成给定的设备授权userCode

60.2 DeviceFlowAuthorizationRequest

  • ClientId
    发起请求的客户端标识符。

  • ScopesRequested
    授权请求中请求的范围。

60.3 DeviceFlowInteractionResult

  • IsError
    指定授权请求是否出错。

  • ErrorDescription
    失败时的错误描述。

github地址

posted @ 2019-04-28 22:27  ThinkJay  阅读(489)  评论(0编辑  收藏  举报