Repository navigation
Change DataProtection projects to target netcoreapp3.0 - #4473
Conversation
e698469 to
3d16ba4
Compare
|
We're adding required PR checks to ensure the repo compiles before you merge. Can you update this PR by rebasing on master? Alternative: if you plan to 'squash merge' this PR, you can also use a merge to update this PR. This can be easier to manage if you have lots of changes in this PR. |
dougbu
left a comment
There was a problem hiding this comment.
From the CI failures, looks like src\Security\src\Microsoft.Owin.Security.Interop\Microsoft.Owin.Security.Interop.csproj needs to be updated before or as part of this change. Otherwise, looks good!
3d16ba4 to
e52f873
Compare
|
Rebased after removing Microsoft.Owin.Security.Interop. |
|
Do we intend to keep shipping Microsoft.Extensions.Identity.{Core, Stores} as NuGet packages? This is a scenario we didn't know about when we discussed DP 3.0 with Barry. cc @HaoK
|
|
Yeah I don't see any reason why we would change those packages, what's the issue with them? |
|
They depend on DataProtection which is moving to netcoreapp3.0. |
|
The transitive graph of Microsoft.Extensions.Identity.Stores includes the packages below. Based on our latest review of packages and frameworks, it appears we need to keep the following supporting .NET Standard 2.0
We also need to ensure all of these end up in the right packaging group. It looks like we only have Identity.Stores and Cores in the list correctly, and are missing the Cryptography packages: https://github.com/aspnet/AspNetCore/blob/f1aacdbaa8b7a2b82163c19b8a03496ba6951cf5/build/SharedFrameworkOnly.props#L1-L31 |
|
Hrm yeah this is due to the password hasher using key derivation which is pretty core to identity... |
|
Or these aren't proper Extensions packages and they need to get recategorized under AspNetCore, moved to netcoreapp3.0, shared framework, etc.. |
|
@natemcmaster What is the reason for these shipping as packages? Are there dependencies that force this? If not, maybe all of Identity should be shared framework only? |
|
Yeah I'm guessing we didn't realize the password hasher was tied to aspnet core due to using keyderivation at the time. Another option would be to switch the default implementation to something that didn't use AspNet encryption, and move that to the AspNet.Identity package. So if you are only using the Core packages you get a different password hasher than before (but I'm assuming we could make it still work the same @blowdart ?) |
|
Duplicated code for password hashing seems like a bad bad idea, because you know we'll forget to update one when we update the other |
|
Offline notes from @DamianEdwards:
|
Is it 🆗 that this would be a breaking change to Microsoft.AspNetCore.App.nupkg and the shared framework? At least making Microsoft.Extensions.Identity.Stores and Microsoft.Extensions.Identity.Core also |
|
In the fairly recent past (past month) when ppl asked about renaming the packages we decided it wasn't worth the breaking change |
e52f873 to
32b4749
Compare
|
Rebased. This should be unblocked now. |
#3754 The net461 only SystemWeb project was removed.