IdentityServer / WindowsAuthentication

Windows Token to JWT Token Service for active and passive Flows
Apache License 2.0
36 stars 31 forks source link

Cannot use with OWIN 4.x and Microsoft.IdentityModel 5.x #27

Open explunit opened 5 years ago

explunit commented 5 years ago

Adding issue here to help others who may be googling this...

If you attempt to use this package with the WsFederation Middleware in OWIN/Katana 4.0 (which uses Microsoft.IdentityModel 5.x) you will get a SecurityTokenException "no validator found" error message.

This is due to a bug in Microsoft.IdentityModel 5.x: https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/issues/1107

Ton024 commented 5 years ago

And what should we do instead?

Ton024 commented 5 years ago

Keep: Microsoft.Owin.Security.WsFederation Version 3.1.0 and System.IdentityModel.Tokens.Jwt versie 4.04

rb84 commented 5 years ago

Any updates about this?

explunit commented 5 years ago

I'd be surprised if a fix/workaround appears in this library, but I hope that Microsoft will fix the underlying issue: https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/issues/1107