Invalid token. System.IdentityModel.Tokens.SecurityTokenSignatureKeyNotFoundException: IDX10500
Hello,
I just created a BOT and published on azure. I registered it and when tested it is saying Endpoint authorization succeeded.
When tested in Emulator i got 500 Internal server error.
When looked into Azure logging i found this issue
PID[6092] Warning Invalid token. System.IdentityModel.Tokens.SecurityTokenSignatureKeyNotFoundException: IDX10500: Signature validation failed. Unable to resolve SecurityKeyIdentifier: 'SecurityKeyIdentifier ( IsReadOnly = False, Count = 2, Clause[0] = X509ThumbprintKeyIdentifierClause(Hash = 0x61B44041161C13F9A8B56549287AF02C16DDFFDB), Clause[1] = System.IdentityModel.Tokens.NamedKeySecurityKeyIdentifierClause ) ', token: '{"typ":"JWT","alg":"RS256","x5t":"YbRAQRYcE_motWVJKHrwLBbd_9s","kid":"YbRAQRYcE_motWVJKHrwLBbd_9s"}.{"aud":"https://graph.microsoft.com","iss":"https://sts.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47/","iat":1474272436,"nbf":1474272436,"exp":1474276336,"app_displayname":"Nagarro Speech BOT","appid":"2787376c-41c9-43e2-8fe8- 2d7cd011db47/","iat":1474272436,"nbf":1474272436,"exp":1474276336,"app_displayname":"Nagarro Speech BOT","appid":"2787376c-41c9-43e2-8fe8-b1688aff17d5","appidacr":"1","idp":"https://sts.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47/","tid":"72f988bf-86f1-41af-91ab-2d7cd011db47","ver":"1.0"}'. at System.IdentityModel.Tokens.JwtSecurityTokenHandler.ValidateSignature(String token, TokenValidationParameters validationParameters) at System.IdentityModel.Tokens.JwtSecurityTokenHandler.ValidateToken(String securityToken, TokenValidationParameters validationParameters, SecurityToken& validatedToken) at Microsoft.Bot.Connector.JwtTokenExtractor.
d__9.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Bot.Connector.JwtTokenExtractor. d__6.MoveNext()
please help me in fixing this issue.
Thanks, Dhiraj
Hi @dhirajgupta1, it looks like your bot was not able to connect to the login.microsoftonline.com server to download the list of acceptable signing keys.
If you restart the bot, does it work? That will help us identify that this is the error.
Yes i am still getting issue but this is different from previous one, i used Speech API in this bot.