Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • João Roque 8 posts 88 karma points
    17 days ago
    João Roque

    Custom Members implementation


    We are migrating and redesigning a project that was developed in Umbraco 8. It is scheduled to be finished in September and hopefuly the Umbraco netcore will be stable enough to be in a production ready state by then. We are starting development using the alpha 4 and will keep updating when new versions come out.

    The first roadblock I've encountered is regarding Members. We are looking to have the members saved in our database without relying on Umbraco to store it in the Umbraco database. I've researched the v9 source code and it looks like the netcore version of Members that uses Identity is almost ready, but not 100% yet. At least it was not in alpha 4.

    My questions are:

    • Is it possible to seamlessly use our own Identity in a project that has Umbraco? Will there be a conflict? I've tried, and currently users can't login to the Umbraco backoffice after adding the Identity scafolding. It adds the IdentityHostingStartup class which has an instruction in its ConfigureServices that does the following:
    services.AddDefaultIdentity<DBUser>(options => options.SignIn.RequireConfirmedAccount = false).AddEntityFrameworkStores<DBContext>();

    When I comment that instruction Umbraco Users can login, but of course, Identity no longer works in my code within my project.

    • In order to do my custom members implementation what classes / interfaces do I need to override / implement? I don't need viewing / editing / assigning members groups in Umbraco backoffice but I need the Umbraco group based public access control. Do I need more than IMemberManager, UmbracoIdentityUser, IMemberRepository and IMemberGroupRepository?

    • If I do my own implementations of those classes how do I configure Umbraco to inject them instead of the Umbraco native ones? I've looked at the dependency injection code but it seems that it can't be accessed by the project running the Umbraco package.

    • Do you have any idea if in the next version (beta 1) will have the members part 100% finished?



Please Sign in or register to post replies

Write your reply to: