OfficeDev / microsoft-teams-apps-expertfinder

Expert Finder bot allows employees to search for other individuals in an organization based on their skills, interests and schools.
MIT License
33 stars 30 forks source link

Problem with Bot not connecting #8

Open Michai901 opened 4 years ago

Michai901 commented 4 years ago

So I followed the guide step by step but it come sto a pint after the deployment of the template (which took around 20 minutes) where everything seems to be provisioned but i cant get the bot to work.

When I try to manually acess the Bot App Service's domain it redirects me automatically to an error page.

Screenshots of the base ressource name, redirect url and bot test attached. chatwrong ressourcegrup weterleitung

Michai901 commented 4 years ago

After I deployed the packed manifest.zip to teams it allows me to show my prfile but any other action fails and asks me to sign-in without anythig ever happening. teamsview

abbodh commented 4 years ago

Hi @Michai901 - can you please check if the App permission in app registration has SharePoint scope permission "AllSites.Read"?

Michai901 commented 4 years ago

Yes i just checked both: User.Read permission for Graph.API and AllSites.Read in Sharepoint API permissions were set

eliezerbnu commented 4 years ago

I have same problem.

This error on application:

[Information] Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler: Failed to validate the token.Microsoft.IdentityModel.Tokens.SecurityTokenSignatureKeyNotFoundException: IDX10501: Signature validation failed. Unable to match key:kid: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'.Exceptions caught:'[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'.token: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'.at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateSignature(String token, TokenValidationParameters validationParameters)at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateToken(String token, TokenValidationParameters validationParameters, SecurityToken& validatedToken)at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync() 2020-05-26 15:12:13.827 +00:00 [Information] Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler: Bearer was not authenticated. Failure message: IDX10501: Signature validation failed. Unable to match key:kid: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'.Exceptions caught:'[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'.token: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'.

zencell commented 4 years ago

Also have the same problem.

rashmi-dixit commented 4 years ago

@Michai901, @eliezerbnu, @zencell - Please check following in

  1. In bot settings the Login URL entered is https://login.microsoftonline.com
  2. SharePoint address saved in app settings should start with https:// and should have / at the end. For e.g. https://<>.sharepoint.com/ Replace <> with your org's tenant name.
FHFTechTeam commented 3 years ago

I give up :( after several installation and following the guide to the T, it just doesn't work :( image