microsoft-teams-apps-contactgrouplookup icon indicating copy to clipboard operation
microsoft-teams-apps-contactgrouplookup copied to clipboard

Error when accessing the app from inside Teams

Open nmdunlap opened this issue 3 years ago • 1 comments

Hello,

We are trying to deploy the app and when attempting to access the app through teams, we get an error stating something went wrong. Looking at the error through Applicaiton Insights, we see the following: Microsoft.IdentityModel.Tokens.SecurityTokenInvalidIssuerException: at Microsoft.IdentityModel.Tokens.Validators.ValidateIssuer (Microsoft.IdentityModel.Tokens, Version=5.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35) at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateIssuer (System.IdentityModel.Tokens.Jwt, Version=5.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35) at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateTokenPayload (System.IdentityModel.Tokens.Jwt, Version=5.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35) at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateToken (System.IdentityModel.Tokens.Jwt, Version=5.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35) at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler+<HandleAuthenticateAsync>d__6.MoveNext (Microsoft.AspNetCore.Authentication.JwtBearer, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60)

This app has been deployed across tenants. Meaning we deployed the app in one Azure tenant but are accessing it from a demo tenant.

Please give us some direction on this.

Thanks in advance,

Nate

nmdunlap avatar Mar 11 '21 00:03 nmdunlap

Try by creating app registration in demo tenant

SubbaReddi avatar Aug 26 '21 12:08 SubbaReddi