Skip to content

Move Identity.Core and Identity.Stores to NetCoreApp3.0 - #4523

Merged
Tratcher merged 1 commit into
masterfrom
tratcher/3/identity
Dec 11, 2018
Merged

Tratcher merged 1 commit into
masterfrom
tratcher/3/identity

Conversation

@Tratcher

@Tratcher Tratcher commented Dec 7, 2018

Copy link
Copy Markdown
Member

#3754 This is blocking DataProtection #4473

@Tratcher Tratcher added this to the 3.0.0-preview2 milestone Dec 7, 2018
@Tratcher
Tratcher requested review from HaoK and natemcmaster December 7, 2018 23:52
@Tratcher Tratcher self-assigned this Dec 7, 2018
@Tratcher

Tratcher commented Dec 7, 2018

Copy link
Copy Markdown
Member Author

@natemcmaster these will also need to be re-evaluated from the shared framework perspective.

@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Random question, why is this line showing up as a diff?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The UTF8 BOM probably changed

@natemcmaster natemcmaster left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@natemcmaster

Copy link
Copy Markdown
Contributor

If these assemblies go to netcoreapp3.0, there doesn't appear to be any value in shipping as standalone nuget packages. I'm okay with this.

@Tratcher Once you update SharedFrameworkOnly.props to reflect this, you might also need mark this packages as 'noship' in build/artifacts.props. IIRC the build will fail if you don't.

@kevinchalet

Copy link
Copy Markdown
Contributor

I thought the Microsoft.Extensions.* packages were supposed to keep supporting netstandard20. Has anything changed?

@Tratcher

Tratcher commented Dec 8, 2018

Copy link
Copy Markdown
Member Author

@PinpointTownes we realized these two never should have been renamed to Extensions. See #4473 (comment)

@kevinchalet

Copy link
Copy Markdown
Contributor

@Tratcher correct me if I'm wrong, but splitting and moving the core Identity components to Microsoft.Extensions.* was not an oversight but a deliberate change allowing to use Identity in non-ASP.NET Core scenarios (e.g in an Orleans/Service Bus/RPC-like membership service).

For me, it was an extremely positive change (not perfect tho', as namespaces, crypto dependencies or projects like Microsoft.AspNetCore.Identity.EntityFrameworkCore haven't been renamed to reduce the number of breaking changes).

It's a bit harsh to say a posteriori that you didn't really want to do that and that the poor guys who dared use these packages outside of ASP.NET Core are once again left in a bad position.

@Tratcher

Tratcher commented Dec 8, 2018

Copy link
Copy Markdown
Member Author

Between the namespaces and the dependencies it was never properly factored out of AspNet. They're going to need to do additional work if they want to enable that properly.

@kevinchalet

Copy link
Copy Markdown
Contributor

Between the namespaces and the dependencies it was never properly factored out of AspNet. They're going to need to do additional work if they want to enable that properly.

Technically, I can guarantee you Identity Core 2.0 worked like a charm outside of ASP.NET Core (I've used it in a gRPC service, in a .NET Core console without ASP.NET Core and in a .NET Framework app and I've never seen any issue).

Naming of certain namespaces or dependencies was not ideal, but it didn't prevent it from working.

natemcmaster added a commit that referenced this pull request Dec 10, 2018
* Put packages back into 'ship' which were unintentionally skipped in 3.0 refactoring
   * Libuv transport for kestrel
   * Http connection abstractions shared by SignalR client and Kestrel.
   * Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson - this wasn't moved to the right category when it was added
* Make dotnet-* packages internal-only. They were only shipped to NuGet.org because we had not yet enabled source-build. We plan to implement source-build in 3.0 (#3752)
* Make Microsoft.Extensions.Identity.* packages shared-framework only (see #4523). 
* Remove unused entries for packages that moved to aspnet/AspNetCore-Tooling
* Add comments in the artifacts.props document for why each 'noship' package is in this category.
@Tratcher

Copy link
Copy Markdown
Member Author

@PinpointTownes take it up with @blowdart to see if he's willing to complete the refactoring. Last I checked he said no.

In the meantime I'll merge this to unblock our other components.

@Tratcher
Tratcher dismissed natemcmaster’s stale review December 11, 2018 16:13

Nate dealt with SharedFrameworkAndPackage in another PR.

@Tratcher
Tratcher force-pushed the tratcher/3/identity branch from c3e6276 to 8e222de Compare December 11, 2018 16:49
@Tratcher
Tratcher merged commit 99901fb into master Dec 11, 2018
@Tratcher
Tratcher deleted the tratcher/3/identity branch December 11, 2018 18:23
@blowdart

Copy link
Copy Markdown
Contributor

It was never official, however if this move means the unofficial scenarios of using outside are no longer support that, and there are no longer separate packages, then it should be reconsidered as I know of a few large customer scenarios where they're using ASP.NET identity in things like WCF backends, and even WPF apps. cc @DamianEdwards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants