【发布时间】:2016-05-01 09:15:04
【问题描述】:
我已经在 Asp.Net Web Api 项目中实现了一个授权服务器,如 article 中所述。
现在我需要使用来自 .Net c# 客户端的服务。在 IdentityModel documentation 我可以看到下面的例子:
var client = new TokenClient(
"https://server/token",
"client_id",
"secret");
var response = await client.RequestClientCredentialsAsync("scope");
var token = response.AccessToken;
问题:
- 拥有客户端 ID 和客户端密码的目的是什么?
- 如何使用用户凭据对用户进行身份验证?
- 如何在客户端访问用户声明?
-
Scope是什么,有什么用?
【问题讨论】:
标签: asp.net asp.net-web-api2 asp.net-identity claims thinktecture-ident-model