OfficeDev / microsoft-teams-apps-greatideas

An “innovation challenge” system that lets employees submit and share ideas and insights, with voting and contests. An app using which employees can submit an innovative idea in a selected category to be visible to all colleagues and leadership, ideas can be voted upon and a leader board of best idea contributors can be shared. This app can also be a route to file patent ideas by anyone in an organization.
MIT License
84 stars 36 forks source link

Error after opening application in tabbed experience #13

Open jalew123 opened 4 years ago

jalew123 commented 4 years ago

Hi,

I am running into the following error once I authenticate into the app. Any idea what might be causing this?

image

This also happens when I add the Great Ideas app into a Team and add the tab into the channel.

Thanks,

Jack

hmnzr commented 4 years ago

Have the same issue. I can see the authentication issue in App Insights. However, bot replies fine to me.

{"FormattedMessage":"Failed to validate the token.","AspNetCoreEnvironment":"Production","{OriginalFormat}":"Failed to validate the token.","RequestPath":"/api/Settings/botsettings","ConnectionId":"0HM2KOU1HI801","CategoryName":"Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler","RequestId":"0HM2KOU1HI801:0000003E","EventId":"1"}
--
hmnzr commented 4 years ago

Ok I found the issue for me. The installation from deployment guide did not put Tenant Id into AzureAD:ValidIssuers configuration.

daverupton commented 3 years ago

Ok I found the issue for me. The installation from deployment guide did not put Tenant Id into AzureAD:ValidIssuers configuration.

"TENANT_ID" in the config setting is correct. It is replaced in code. The issue I experienced had to do with the ApplicationPassword being incorrectly set. Needs to be set as the secret.