Shazwazza / UmbracoIdentity

ASP.NET Identity implementation for Umbraco's native member data
MIT License
111 stars 58 forks source link

How do I develop locally? #119

Closed knnithyanand closed 4 years ago

knnithyanand commented 4 years ago

I want to extend the library to overcome certain limitations, such as adding Email / Phone Verification and 2FA support. I have a big challenge to develop and debug the code locally.

Objective: Extend the UserManager & UserStore classes to add necessary features. Still, then I have to rewrite certain logic for mapping because some methods are private, and not all methods can be overridden. If I had to modify the source classes to include these features on my machine, I have to run build scripts and publish a NuGet package to a local folder and add them into my web project.

But this is not productive for a few reasons:

  1. Have to publish package and update for every change
  2. I cannot set breakpoints and debug the code

Here are some things I have tried:

Both these attempts have failed, above are the errors for reference.

jpiombo commented 4 years ago

Where you able to extend the user manager without modifying the source code?

Eg; using this? https://github.com/Shazwazza/UmbracoIdentity/wiki/Startup-Configuration

I just want to extend the lockout functionality and was not able to do so.

Shazwazza commented 4 years ago

The web project included in this solution is there for developing locally.

knnithyanand commented 4 years ago

Where you able to extend the user manager without modifying the source code?

Eg; using this? https://github.com/Shazwazza/UmbracoIdentity/wiki/Startup-Configuration

I just want to extend the lockout functionality and was not able to do so.

Yes, I was able to. I'm adding email verification function this way.

knnithyanand commented 4 years ago

Update-Package UmbracoCms -Project UmbracoIdentity.Web -Reinstall works for me. Thanks a lot.