Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenIddict获取token后请求无权限 IDX10206: Unable to validate audience #54

Open
fanslead opened this issue Nov 1, 2022 · 2 comments

Comments

@fanslead
Copy link

fanslead commented Nov 1, 2022

认证地址都已经改成OpenIddict的authserver的地址。token请求正常,请求API是报错这个
Bearer was not authenticated. Failure message: IDX10206: Unable to validate audience. The 'audiences' parameter is empty.

@fanslead
Copy link
Author

fanslead commented Nov 1, 2022

使用OpenIddict请求token必须带上scope,加上scope后成功登录
username: admin
password: 1q2w3E*
client_id: basic-web
grant_type: password
scope: WebAppGateway BaseService

@WilliamXu96
Copy link
Owner

好的,谢谢指出! @fanslead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants