microsoftgraph / aspnet-snippets-sample

A repository of code snippets that use Microsoft Graph to perform common tasks such as sending email, managing groups, and other activities from an ASP.NET Core MVC app. This sample uses the Microsoft Graph .NET Client Library to work with data, and the Microsoft Identity Web Library for authentication on the Microsoft identity platform v2.0 endpoint.
MIT License
189 stars 101 forks source link

TokenValidationParameters' is defined in System.IdentityModel.Token.Jwt but it could not be found. #34

Closed Slowbat closed 4 years ago

Slowbat commented 7 years ago

Using the NuGet package System.IdentityModel.Tokens.Jwt 5.1.4. results in error message.

TokenValidationParameters' is defined in System.IdentityModel.Token.Jwt but it could not be found in Startup.Auth.cs.

Using package 4.x seems to resolve that problem.

jasonjoh commented 4 years ago

S.I.T.J 5.x implemented a breaking change, and isn't compatible with the OWIN packages used by this sample. I'll be updating this to ASP.NET Core soon, so this will be a non-issue.