摘要: 1. 修改 Config.cs 2. 修改 Startup.cs 3. 使用PostMan 调用调试 请求参数: client_id:pwdClientclient_secret:secretgrant_type:passwordpassword:123456username:sunxuchu 4. 阅读全文
posted @ 2018-07-01 23:50 落叶的瞬间; 阅读(1309) 评论(0) 推荐(0) 编辑
摘要: 输出结果: 阅读全文
posted @ 2018-07-01 21:49 落叶的瞬间; 阅读(1962) 评论(0) 推荐(0) 编辑
摘要: 1. vs code 终端执行 dotnet new webapi --name ClientCredentialApi 2. 找到ValuesController.cs 引用 using Microsoft.AspNetCore.Authorization; 3. Nuget 导入 Identit 阅读全文
posted @ 2018-07-01 19:57 落叶的瞬间; 阅读(574) 评论(0) 推荐(0) 编辑
摘要: 1. 使用Vsual Studio Code 终端执行 dotnet new webapi --name IdentityServerSample 命令创建一个webapi 的 IdentityServer4Sample 项目 2. 添加Config.cs 类 3. 修改 Startup.cs 如下 阅读全文
posted @ 2018-07-01 16:45 落叶的瞬间; 阅读(567) 评论(0) 推荐(0) 编辑