【发布时间】:2022-03-22 19:53:31
【问题描述】:
我有以下客户:
new Client
{
RequirePkce = false,
AllowAccessTokensViaBrowser = true,
ClientId = "client_id_mobile",
ClientSecrets =
{
new Secret("client_secret_mobile".Sha256())
},
AllowedGrantTypes = GrantTypes.ResourceOwnerPassword,
AllowedScopes =
{
IdentityServerConstants.StandardScopes.OpenId,
},
RedirectUris = new []
{
"https://www.getpostman.com/oauth2/callback"
},
}
我正在尝试通过在邮递员中执行以下操作来验证用户身份:
但正如你所见,我得到了unsupported_grant_type,我尝试将授权类型更改为code,然后得到unauthorized_client
谁能指出我在这里做错了什么?
【问题讨论】:
标签: c# authentication oauth-2.0 identityserver4 openid