Skip to content

interface IConsentService

cangjie
public interface IConsentService

功能:定义用户同意服务接口。

成员概览

成员功能
func getConsentContext(String)获取指定返回地址的同意上下文。
func createConsent(ClaimsPrincipal, Client, Array<String>)为当前主体创建同意记录。

func getConsentContext(String)

cangjie
func getConsentContext(returnUrl: String): ConsentContextResult

功能:获取指定返回地址的同意上下文。

参数:

  • returnUrl: String - 返回地址。

返回值:

func createConsent(ClaimsPrincipal, Client, Array<String>)

cangjie
func createConsent(subject: ClaimsPrincipal, client: Client, scopes: Array<String>): Unit

功能:为当前主体创建同意记录。

参数:

  • subject: ClaimsPrincipal - 当前用户主体。
  • client: Client - 当前客户端。
  • scopes: Array<String> - 已同意的作用域数组。

返回值:

  • Unit