Share via

AuthenticationTokenInvalid

qian liu 11 Reputation points
2022-08-22T12:22:01.26+00:00

Hello, I am a developer of Kingsoft Office, which is connected to your company's uwp payment. Now, I have encountered a problem and hope to get help! When calling the interface https://purchase.mp.microsoft.com/v6.0/b2b/keys/renew, the following error response body will appear. Currently, about 9000 pieces of such user data are affected
The response body is as follows

{
"code":"Unauthorized",
"data":[

],  
"details":[  

],  
"innererror":{  
    "code":"AuthenticationTokenInvalid",  
    "data":[  

    ],  
    "details":[  

    ],  
    "innererror":{  
        "code":"B2B key",  
        "data":[  

        ],  
        "details":[  

        ],  
        "message":"IDX10501: Signature validation failed. Unable to match key: \nkid: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx'. \nNumber of keys in TokenValidationParameters: '0'. \nNumber of keys in Configuration: '3'. \nExceptions caught:\n '[PII of type 'System.Text.StringBuilder' is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'. \ntoken: '[PII of type 'System.IdentityModel.Tokens.Jwt.JwtSecurityToken' is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'."  
    },  
    "message":"Authentication token supplied is invalid"  
},  
"message":"The client is not authorized to perform the requested operation.",  
"source":"PurchaseFD"  

}

Microsoft Security | Microsoft Entra | Microsoft Entra ID

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.