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

Enable custom storage providers for ASP.NET Core Identity #1634

Open
tedvanderveen opened this issue May 19, 2021 · 0 comments
Open

Enable custom storage providers for ASP.NET Core Identity #1634

tedvanderveen opened this issue May 19, 2021 · 0 comments

Comments

@tedvanderveen
Copy link
Contributor

tedvanderveen commented May 19, 2021

See for ref:

At the moment, the Piranha.AspNetCore.Identity package has a dependency on Microsoft.EntityFrameworkCore:

using Microsoft.EntityFrameworkCore;

But what if one does not want to store user and role data in a relational database? Like in my customer's case, we would like to reuse the existing user and role management and UI/Razor features (https://github.com/PiranhaCMS/piranha.core/tree/master/identity/Piranha.AspNetCore.Identity/Areas/Manager/Views), but bring our own custom Identity storage provider.

Possible way of setting this up, is the creation of a new package Piranha.AspNetCore.Identity.EntityFrameworkCore that provides the EF implementations of IRoleStore and IUserStore. And remove any dependency on Microsoft.EntityFrameworkCore from the Piranha.AspNetCore.Identity package?

As an additional bonus, we can include a file based IRoleStore and IUserStore implementation to the Piranha.AspNetCore.SimpleSecurity package for demo/testing setups.

I would be very happy to further investigate this and submit a PR if this issue and described approach is okay for you guys.

@tidyui tidyui added this to the Version 9.2 milestone Jun 18, 2021
@tidyui tidyui modified the milestones: Version 9.2, Version 10.0 Oct 7, 2021
@tidyui tidyui added this to To do in Version 10.0 via automation Oct 25, 2021
@tidyui tidyui moved this from To do to In progress in Version 10.0 Oct 25, 2021
@tidyui tidyui modified the milestones: Version 10.0, Version 11.0 Nov 8, 2021
@tidyui tidyui removed this from In progress in Version 10.0 Nov 8, 2021
@tidyui tidyui removed this from the Version 11.0 milestone Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants