IdentityServer / IdentityServer4.AccessTokenValidation

IdentityServer Access Token Validation for ASP.NET Core
Apache License 2.0
544 stars 214 forks source link

Method not found IdentityModel.Client. DiscoveryClient.ParseUrl(System.String) #99

Closed edtim8 closed 6 years ago

edtim8 commented 6 years ago

When I updated to IdentityServer4.AccessTokenValidation 2.1.0, a crisis problem appeared.

fail: Microsoft.AspNetCore.Server.Kestrel[13] Connection id "0HL9P6Q5123R7", Request id "0HL9P6Q5123R7:00000001": An unhandled exception was thrown by the appli cation. System.MissingMethodException: Method not found: 'System.ValueTuple`2<System.String,System.String> IdentityModel.Client. DiscoveryClient.ParseUrl(System.String)'. at IdentityServer4.AccessTokenValidation.IdentityServerAuthenticationOptions.ConfigureJwtBearer(JwtBearerOptions jwtO ptions)

I can't fix it..... help ...

edtim8 commented 6 years ago

image

brockallen commented 6 years ago

Did you mean to close this?

andymac4182 commented 6 years ago

We are getting the same issue @brockallen . It appears to be related to .NET 4.7 being installed. Any help would be great.

leastprivilege commented 6 years ago

It's a Microsoft tooling issue. They said they gonna fix it "soon".

darkurse commented 6 years ago

Is there a workaround we can do in the meantime ?

leastprivilege commented 6 years ago

try targeting 461, or 47x or netcoreapp2.0 specifically - can't remember which one.

darkurse commented 6 years ago

Ok this is what I tried :

  1. I've been explicitly targeting 461 until now and it is not working now
  2. I just installed 47 and no luck
  3. I installed 471 afterwards and still no luck
  4. I couldn't try target netcoreapp2.0 because of some legacy dependencies of mine.

This started to happen since yesterday where two things happened :

At this point I don't know which one of the two is the culprit.

leastprivilege commented 6 years ago

yea - that's a pretty sad story.

Try targeting the latest 4.7 explicitly.

leastprivilege commented 6 years ago

Let me know if that works.

darkurse commented 6 years ago

It works with 4.7. Sorry for the late answer but I had to extract out the old service bus dependency out of the project in order to be able to compile it ..