-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Two different AuthenticationProperties types #2681
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
Comments
From @davidfowl on Monday, November 13, 2017 9:07:01 AM My guess is that the type in Microsoft.AspNetCore.Http.Authentication is for the 1.0 auth stack. @HaoK ? |
From @Tratcher on Monday, November 13, 2017 9:11:32 AM Everything in Http.Authentication was depreciated and/or moved in 2.0. |
From @khellang on Monday, November 13, 2017 9:44:25 AM
Except they're not. Only |
From @davidfowl on Monday, November 13, 2017 9:49:49 AM @khellang Only AuthenticationManager has the Obsolete attribute. Those types are considered deprecated. I'm not sure why we didn't mark them as such. |
From @khellang on Monday, November 13, 2017 10:03:38 AM
Right, but unfortunately, there's no tooling (yet?) that can read the ASP.NET team's minds 😉 It's kinda confusing when you end up importing the wrong namespace/type and there's nothing telling you that it's obsolete 😝 |
From @HaoK on Monday, November 13, 2017 11:31:50 AM We settled on obsoleting all the main entry points: (aspnet/HttpAbstractions#863 (comment)). So there should be no way to actually use the old AuthenticationProperties, but yeah there would be no warning if you were only using the properties type. But you would get a compile warning/error as soon as you tried to actually do anything with it. |
From @poke on Tuesday, November 14, 2017 4:12:18 AM I originally pointed this out on chat; thanks for opening an issue about it @khellang. The reason why I encountered this is that while migrating to 2.0, I still had a using on If we still want to keep the obsolete |
@poke not sure if you're still following this bug, but that also would be a breaking change, so we have no plans as such. Closing this bug. |
Yeah, I’m still following this. Too bad that we cannot do something about this because when I was upgrading from 1.0 to this, the type existing twice was the thing that broke it for me :/ But I understand your reasoning. Hope we can get rid of the old stuff soon. – Anyway, thanks for the reply! |
From @khellang on Monday, November 13, 2017 8:26:26 AM
Why is there two different
AuthenticationProperties
types in this repository?Why doesn't
Microsoft.AspNetCore.Authentication.Abstractions
use the one fromMicrosoft.AspNetCore.Http.Abstractions
?Copied from original issue: aspnet/HttpAbstractions#966
The text was updated successfully, but these errors were encountered: