Skip to content
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

Recommended way to get access to UserManager from asp.net core side #275

Open
ahazelwood opened this issue Feb 1, 2023 · 0 comments
Open

Comments

@ahazelwood
Copy link

I have managed to integrate a fairly complex asp.net Webforms application using systemweb-adapters. However, one of the pieces that I would like to be able to migrate is the ability to add/manage users.

Normally I would use:

services.AddIdentity<MyMembershipUser, IdentityRole<string>>
    .AddEntityFrameworkStores<MyDbContext>();

However once I do this, the authorization no longer works correctly because AddIdentity appears to squash the underlying cookies authentication from the Webforms app.

Any suggestions on how to add this integration point in so that DI will work correctly on the core side?

Thanks.

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

No branches or pull requests

1 participant