OAuthResponseType interface

表示 OIDC 提供商的 OAuth 授权流程的响应对象的接口。需要以下设置之一:

  • 将代码流的code设置为true
  • 对于 ID 令牌流,将idToken设置为true

签名:

export interface OAuthResponseType 

特性

财产类型描述
代码布尔值授权代码是否从 IdP 的授权端点返回。
id令牌布尔值ID 令牌是否从 IdP 的授权端点返回。

OAuthResponseType.code

授权代码是否从 IdP 的授权端点返回。

签名:

code?: boolean;

OAuthResponseType.idToken

ID 令牌是否从 IdP 的授权端点返回。

签名:

idToken?: boolean;