IdentityServer / IdentityServer3.AccessTokenValidation

OWIN Middleware to validate access tokens from IdentityServer3
Apache License 2.0
91 stars 149 forks source link

Unexpected file version of IdentityServer3.AccessTokenValidation involved in build warning #152

Closed alastair-mcdonald closed 7 years ago

alastair-mcdonald commented 7 years ago

When I use NuGet to install IdentityServer3.AccessTokenValidation version 2.10.0 (also tried 2.15.0), it is actually 1.0.0.0 which gets installed on the disk.

Is this expected behaviour? I was expecting the file and product versions to reflect the advertised version.

This came to light due to build warnings saying "Found conflicts between different versions of the same dependent assembly that could not be resolved." The build log showed IdentityServer3.AccessTokenValidation as having an unexpected version. Here is an image showing that 2.10.0 has been installed but the file and product versions are 1.0.0.0

image

I tried a manual install using package manager and also tried the NuGet Gui interface in Visual Studio 2015 but got the same result.

All the projects which reference IdentityServer3.AccessTokenValidation are referencing v2.10.0 (I don't have one project using 2.10.0 and a different project using another version.)

Here is a snippet from the build log...

Project file item includes which caused reference "D:\Dev\xxxxxxxx\packages\Microsoft.Owin.Security.Jwt.3.0.1\lib\net45\Microsoft.Owin.Security.Jwt.dll". (TaskId:12)
1>              IdentityServer3.AccessTokenValidation, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL (TaskId:12)
1>              Microsoft.Owin.Security.Jwt, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL (TaskId:12)
1>          D:\Dev\xxxxxxxx\packages\IdentityServer3.AccessTokenValidation.2.10.0\lib\net45\IdentityServer3.AccessTokenValidation.dll (TaskId:12)
1>            Project file item includes which caused reference "D:\Dev\xxxxxxxx\packages\IdentityServer3.AccessTokenValidation.2.10.0\lib\net45\IdentityServer3.AccessTokenValidation.dll". (TaskId:12)
1>              IdentityServer3.AccessTokenValidation, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL (TaskId:12)

Thanks, Alastair.

alastair-mcdonald commented 7 years ago

I tracked the build warning to an incorrect version applied to Microsoft.Owin.Security in web.config (3.1.0 instead of 3.0.1), fixed this, and so I have no build warnings now.

However I am still curious, are the file and product versions for IdentityServer3.AccessTokenValidation all 1.0.0.0 regardless of the advertised version?

Thanks, Alastair

alastair-mcdonald commented 7 years ago

Not to worry, I can live happily without knowing. Will close the call.