AspNetKatana icon indicating copy to clipboard operation
AspNetKatana copied to clipboard

Is Owin 4 compatible with Microsoft.IdentityModel 6+

Open gabriellebourdages opened this issue 4 years ago • 1 comments
trafficstars

Hi, We're currently using Owin 4.1.0 with Microsoft.IdentityModel 5.3.0 and need to upgrade some projects to Microsoft.IdentityModel version 6.8 and I'm wondering if Owin 4.1.0 can work with Microsoft.IdentityModel 6.8.

We've updated all the packages, but we do get some exceptions like the one below when trying to configure OpenId :

Microsoft.Owin.Hosting.StartOptions 
 error: 
Method not found: 'Void Microsoft.Owin.Security.OpenIdConnect.OpenIdConnectAuthenticationNotifications.set_RedirectToIdentityProvider(System.Func`2<Microsoft.Owin.Security.Notifications.RedirectToIdentityProviderNotification`2<Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectMessage,Microsoft.Owin.Security.OpenIdConnect.OpenIdConnectAuthenticationOptions>,System.Threading.Tasks.Task>)'.

According to the release notes for Microsoft.IdentityModel, there seems to be some breaking changes, but there's no mention to the method that we see in the error message (the project builds properly too), so I'm not sure if it's due to breaking changes or configuration issues on our end.

Let me know if you need more information.

gabriellebourdages avatar Jan 28 '21 21:01 gabriellebourdages

Someone tried this dependency update recently over at https://github.com/rzontar/pkce/tree/package-update. It seems to build and the tests pass. That should have caught any API breaks.

Tratcher avatar Feb 05 '21 00:02 Tratcher