IdentityServer / IdentityServer2

[deprecated] Thinktecture IdentityServer is a light-weight security token service built with .NET 4.5, MVC 4, Web API and WCF.
Other
410 stars 291 forks source link

OidcToken.cs Issue #789

Closed StateBarofArizona closed 10 years ago

StateBarofArizona commented 10 years ago

I'm creating a fresh new copy of IdentityServer and updated all packages. When I try and build, I get the following errors in OidcToken.cs:

The best overloaded method match for 'System.IdentityModel.Tokens.JwtSecurityToken.JwtSecurityToken(string, string, System.Collections.Generic.IEnumerable<System.Security.Claims.Claim>, System.DateTime?, System.DateTime?, System.IdentityModel.Tokens.SigningCredentials)' has some invalid arguments   C:\Users\cdecinko\Documents\Visual Studio 2013\Projects\SBA Identity\Libraries\Thinktecture.IdentityServer.Protocols\OpenIdConnect\OidcToken.cs

cannot convert from 'System.IdentityModel.Tokens.X509SigningCredentials' to 'System.DateTime?'
cannot convert from 'System.IdentityModel.Protocols.WSTrust.Lifetime' to 'System.DateTime?'
StateBarofArizona commented 10 years ago

Looks like IdSrv is not compatible with System.IdentityModel.Tokens.Jwt version 4. I "rolled back" to the latest version of IdSrv from github and applied all but System.IdentityModel.Tokens.Jwt update. Left it at version 1. Now my project builds.

leastprivilege commented 10 years ago

It is rather the other way round ;)

4.0 has breaking changes - just stay on 1.0