Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/date/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
IdentityServer4的接口文档在哪里_Identityserver4 - Fatal编程技术网

IdentityServer4的接口文档在哪里

IdentityServer4的接口文档在哪里,identityserver4,Identityserver4,在每个IdentityServer4快速入门示例中,都有为资源、客户端和用户提供的内存中提供程序。是否有生产所需的适当接口覆盖的示例 例如,IProfileService是要为用户管理覆盖的类,但是没有使用该类的示例,并且在参考部分中没有关于该类的成员是什么的规范。在实现它时,您会得到需要重写的方法,但所有返回类型都是Task,并且没有关于细节的有用说明。我也遇到了同样的问题,最后查看了默认实现(IdentityServer4实现这些接口的方式) 没有IProfileManager因此,如果您的

在每个IdentityServer4快速入门示例中,都有为资源、客户端和用户提供的内存中提供程序。是否有生产所需的适当接口覆盖的示例


例如,IProfileService是要为用户管理覆盖的类,但是没有使用该类的示例,并且在参考部分中没有关于该类的成员是什么的规范。在实现它时,您会得到需要重写的方法,但所有返回类型都是Task,并且没有关于细节的有用说明。

我也遇到了同样的问题,最后查看了默认实现(IdentityServer4实现这些接口的方式)


没有
IProfileManager
因此,如果您的意思是
IProfileService
,下面是我们如何使用它(向访问令牌添加声明):

公共任务GetProfileDataAsync(ProfileDataRequestContext上下文) { var索赔=新列表(); context.IssuedClaims=索赔; 返回Task.FromResult(0); }
您现在可以将您的声明添加到该声明列表中,它们将被添加到将返回给客户端的访问令牌中。

IdentityServer中没有
IProfileManager
,您指的是哪个接口?
public Task GetProfileDataAsync(ProfileDataRequestContext context)
{
    var claims = new List<Claim>();

    context.IssuedClaims = claims;
    return Task.FromResult(0);
}