摘要: 1 在identity server上设置 client token 类型为 reference 2 配置 受保护的api 项目授权代码 修改 starup.cs 代码如下: using IdentityModel.AspNetCore.OAuth2Introspection; using Micr 阅读全文
posted @ 2022-01-22 18:31 温故纳新 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 1 添加 apiscope 2 添加 apiresource 添加api名为“client_credentials_apis”的apiresource,并把作用域“client_credentials_apis.IdentityUserController.scope”和“client_creden 阅读全文
posted @ 2022-01-22 18:16 温故纳新 阅读(794) 评论(1) 推荐(0) 编辑
摘要: 1 使用 postman 请求token 2 使用 请求到的token 访问受保护的api 资源 阅读全文
posted @ 2022-01-22 14:58 温故纳新 阅读(167) 评论(0) 推荐(0) 编辑