Hi Team,
I'm using BOT framework to validate incoming request from bot in ms teams to my service. When I run locally using ngrok I'm able to validate the request but after deploying my changes in the test env request validation is failing with the following errors:
- Failed to load openID config: Remote host closed connection during handshake
- findKey: keyId <KeyID> doesn't exist.
- java.util.concurrent.ExecutionException: com.microsoft.bot.connector.authentication.AuthenticationException: Invalid Identity
The API I have used to validate the BOT request :
final CredentialProvider credentialProvider = new SimpleCredentialProvider(botId, botPassword);
final CompletableFuture<ClaimsIdentity> claimsIdentity = authenticateToken(headerAuthenticationValue,
credentialProvider,
botPayload.getChannelId(),
botPayload.getServiceUrl());
I have verified the BOT ID and BOT Password. They are correct. Can someone please help me with this issue?