错误:invalid_client - IdentityServer Flow.ClientCredential

时间:2017-03-13 12:43:26

标签: oauth-2.0 access-token identityserver3 openid-connect clientid

我在IdentityServer3中有一个客户端

new Client
{
    ClientName = "Client Credentials Flow Client with Client Certificate",
    ClientId = "certclient",

    ClientSecrets = new List<Secret>
    {
        new Secret
        {
            Value = "61B754C541BBCFC6A45A9E9EC5E47D8702B78C29",
            Type = Constants.SecretTypes.X509CertificateThumbprint,
        }
    },

    Flow = Flows.ClientCredentials,

    AllowedScopes = new List<string>
    {
        "read",
        "write"
    },
}

我在我的本地IIS中托管了令牌服务,我尝试使用Postman ping令牌,但是它给出了错误{"error":"invalid_client"}

Host URL: 
    https://localhost:5775/core/connect/token
Header: 
    Content-Type:application/x-www-form-urlencoded
    Authorization:Basic czZCaGRSa3F0MzpnWDFmQmF0M2JW
Body:
    grant_type=client_credentials
    &cliend_id=certclient
    &client_secret=61B754C541BBCFC6A45A9E9EC5E47D8702B78C29

enter image description here

  

注意:我使用的是纯IdentityServer3软件包,而不是Thinktecture

0 个答案:

没有答案