-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not load type 'System.IdentityModel.Tokens.TokenValidationParameters' from assembly 'System.IdentityModel.Tokens.Jwt, Version=6.5.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 #374
Comments
You have There were significant breaks in the IdentityModel dependencies between 3.x and 4.x. All Microsoft.Owin packages need to be 4.1.0. |
Thank you for the response @Tratcher
Now we want to implement ids Bearer Token Auth for that I added IdentityServer3.AccessTokenValidation version="2.11.0" and here is the package info attached: - Please advise. |
Your dependencies are still out of sync, something in your graph depends on Microsoft.Owin.Security.Jwt 3.x and needs to be updated. If it can't be then you'll need to downgrade Microsoft.Owin.* to 3.1. |
ok , let me try that , will let u know |
@Tratcher i verified dependencies of all the packages that i m using for this app, most of them are having owin dependency >=2x or >= 3x . it seems they should be compatible , but the point is i upgraded Owin to 4.1 so i can't downgrade it now, do we have any way to catch this dependent package causing this error? |
i had gone through the similar issue described here IdentityServer/IdentityServer3.AccessTokenValidation#165 . |
Indeed, it looks like IdentityServer3.AccessTokenValidation is stuck with an old dependency on Microsoft.Owin.Security.Jwt 3.0.1. There were breaking changes in 4.0 so if you want to continue using IdentityServer3.AccessTokenValidation you'll need to continue using Microsoft.Owin.Security.Jwt 3.x (and 3.x for all Microsoft.Owin packages). |
thank you , yes you are correct !!, I too just found the same errors relating to IdentityServer3.AccessTokenValidation. |
This issue has been resolved and has not had any activity for 1 day. It will be closed for housekeeping purposes. See our Issue Management Policies for more information. |
I m getting this error when on IDS bearer Token
auth UseIdentityServerBearerTokenAuthentication
.app framework 4.6
Identity Model - 3.8
here is the package info attached : -
packageInfo.txt
Please help
The text was updated successfully, but these errors were encountered: