question

SupriyaSaraogi-8007 avatar image
0 Votes"
SupriyaSaraogi-8007 asked ChetanSharmamsft-3456 commented

Getting Invalid Identity Error

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?



office-teams-windows-itprooffice-teams-app-dev
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Prasad-MSFT avatar image
0 Votes"
Prasad-MSFT answered ChetanSharmamsft-3456 commented

1.Remote host closed connection during handshake

This problem generally occurs if you install java to the machine. Just run yum remove java* and restart your services and the error might go away.

Ref: https://forums.zimbra.org/viewtopic.php?t=7035&p=141956

2.Invalid Identity

Please refer this.





Thanks,
Prasad Das



If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@SupriyaSaraogi-8007 - If above answer is helpful, could you please accept it for more visibility?

0 Votes 0 ·