OpenIdDict - 密码流不再起作用
OpenIdDict - password flow does not work any more
有人知道密码流有什么问题吗?上周是工作文件,今天不是。
我们从 my-get 获取了该库的更新并添加了一些新列(权限、属性、有效负载和 ReferenceId 等)。
新的我们总是得到:
{
"error": "unauthorized_client",
"error_description": "This client application is not allowed to use the token endpoint."
}
我们在测试中没有改变任何东西。
有什么想法吗?
从 RC2 开始,必须向应用程序授予权限才能使用端点或流。
此处提供了更新您的应用程序的详细说明:https://openiddict.github.io/openiddict-documentation/guide/migration.html。
参考官方documentaion:
If you don't care about permissions (e.g because you don't have third-party clients), you can instead disable them:
// Register the OpenIddict server handler.
.AddServer(options =>
{
options.IgnoreEndpointPermissions()
.IgnoreGrantTypePermissions()
.IgnoreScopePermissions();
});
它解决了我的问题。
有人知道密码流有什么问题吗?上周是工作文件,今天不是。 我们从 my-get 获取了该库的更新并添加了一些新列(权限、属性、有效负载和 ReferenceId 等)。
新的我们总是得到:
{
"error": "unauthorized_client",
"error_description": "This client application is not allowed to use the token endpoint."
}
我们在测试中没有改变任何东西。
有什么想法吗?
从 RC2 开始,必须向应用程序授予权限才能使用端点或流。
此处提供了更新您的应用程序的详细说明:https://openiddict.github.io/openiddict-documentation/guide/migration.html。
参考官方documentaion:
If you don't care about permissions (e.g because you don't have third-party clients), you can instead disable them:
// Register the OpenIddict server handler.
.AddServer(options =>
{
options.IgnoreEndpointPermissions()
.IgnoreGrantTypePermissions()
.IgnoreScopePermissions();
});
它解决了我的问题。