Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/templates/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Oauth 2.0 带有Identity Server 4的JWT令牌_Oauth 2.0_Jwt_Identityserver3 - Fatal编程技术网

Oauth 2.0 带有Identity Server 4的JWT令牌

Oauth 2.0 带有Identity Server 4的JWT令牌,oauth-2.0,jwt,identityserver3,Oauth 2.0,Jwt,Identityserver3,是否可以从Identity Server 3实例请求JWT令牌 我能找到的所有文档都涉及Identity Server 4。我认为v3支持JWT,但我找不到如何请求JWT令牌 我目前正在请求以下信息: var tokenResponse = await client.RequestClientCredentialsTokenAsync(new ClientCredentialsTokenRequest { Address = "<MY_SERVER>/connect

是否可以从Identity Server 3实例请求JWT令牌

我能找到的所有文档都涉及Identity Server 4。我认为v3支持JWT,但我找不到如何请求JWT令牌

我目前正在请求以下信息:

var tokenResponse = await client.RequestClientCredentialsTokenAsync(new ClientCredentialsTokenRequest
{
    Address = "<MY_SERVER>/connect/token",
    ClientId = "<CLIENT_CREDS>",
    ClientSecret = "<CLIENT_SECRET>",
    Scope = "<SCOPE>"
});
var tokenResponse=wait client.RequestClientCredentialsTokenAsync(新的ClientCredentialsTokenRequest
{
Address=“/connect/token”,
ClientId=“”,
ClientSecret=“”,
Scope=“”
});
我最后得到的是一个旗手代币,而不是一个已经签名的代币。我需要提供什么来生成JWT令牌

谢谢