WilliamXu96 / ABP-MicroService

基于abp微服务架构的低代码平台
1.05k stars 320 forks source link

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

Open fanslead opened 1 year ago

fanslead commented 1 year ago

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

fanslead commented 1 year ago

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

WilliamXu96 commented 1 year ago

好的,谢谢指出! @fanslead