Giter Club home page Giter Club logo

ravendb.aspnet.identity's People

Contributors

davidboike avatar judahgabriel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ravendb.aspnet.identity's Issues

.Net Core

Any plans to update this to support .NET Core 1.0 now that the RavenDb client supports it?

Lockout feature not working

It looks like some of the plumbing is here for this feature, but without diving in too deeply, it looks like it's not complete. I've set the shouldLockout to true, but that doesn't have any effect on the AccessFailedCount value in the ApplicationUsers document with failed login attempts.

Doesn't actually create a user when CreateAsync is called

Hi,

Thanks for doing this project - as a RavenDB lover this is a huge step in the right direction when trying to handle everything without having to have a secondary database. :)

However, I have a problem. I have tried using the project in an MVC5 app (created in Visual Studio 2012 from the blank template, using elements from this article http://httpjunkie.com/2013/340/develop-mvc-5-with-asp-net-identity-in-visual-studio-2012/ to get somewhere). For development I run RavenDB on my local machine, port 8080. I have no problem accessing data or writing data.

When I try to use the /account/register method, it seems that RavenDB.AspNet.Identity checks for the presence of the username, but never actually creates it. I see the following in my RavenDB console log:

Request # 8: GET - 0 ms - TestDB - 404 - /docs/ApplicationUsers/RuneJ

So it checks to see if there is a user by the name I am trying to register, but it never actually creates the document - this is the only request passed to RavenDB for the duration of the register method.

I don't know for sure that the problem is in your code, it could be the UserManager that does it, but I get no errors or anything, so I wouldn't know where to start.

I'll be happy to provide anything from my project or try any suggestions.

If it matters, if I try to login, I get another request on the RavenDB server:

Request # 12: GET - 0 ms - TestDB - 404 - /docs/ApplicationUsers/RuneJ

Any hints?

Btw, here is my AccountController constructor, just in case you want to see it.

    public AccountController(IDocumentSession session)
    {
        _session = session;
        UserManager = new UserManager<ApplicationUser>(
            new UserStore<ApplicationUser>(() => _session));
    }

Upgrade to RavenDB 3

Hi,
I've upgraded to RavenDB 3 and it compiles well.

However, when I run a simple ASP.NET 5 MVC web site, having followed you instructions, I get some problems. The users are not persisted in the store.
I had to call this.session.SaveChanges(); in the CreateAsync method of the UserStore class.
I guess I missed something. I'm using RavenDB Embedded.

By the way, how do you make the calls to RavenDB "Store" persistent? I provide a RavenDB open session to the usermanager, who should call savechanges and dispose the session?
Isn't there a paradigm problem here?

There is a problem in the ASP.NET web site too, it create a instance of User with only a Name (no Id) at registration, and your provider doesn't fill automatically the Id from the Name. We can easily fix the AccountController to do that.
I would not do that in real life, but the ASP.NET MVC5 "Demo" does not work as is with

These are not big deals, but it did not work as simply as the tutorial. Great piece of code, very useful, thanks.

UserId vs UserName

In my application, users register with an email address and I wanted to be able to have IdentityUser.UserName represent the email and IdentityUser.Id represent a GUID identifier. This approach isn't working, as I can see in the implementation of UserStore.CreateAsync() that the IdentityUser.Id property is always being generated based off the UserName.

It seems like the Microsoft.AspNet.Identity.IUser interface was intended to have two different pieces of information, a unique id for the user and the user name. In this implementation, I can only really store one piece of information, which is the username.

I know that supporting both Id and UserName as distinct fields on IdentityUser would require a RavenDB index on UserName (in order to support the FindByNameAsync() method). That seems like a reasonable tradeoff to me, but there might be other downsides that I'm not seeing.

I'm interested in your thoughts on this matter.

Error: Nuget dependencies on 3.5.5?

Unable to resolve dependencies. 'RavenDB.Client 4.0.2' is not compatible with 'RavenDB.Database 3.5.5 constraint: RavenDB.Client (= 3.5.5)'.

The notes said that updates were committed to allow for RavenDB 4. Am I reading this wrong? This error occurs when trying to add the newest RavenDB.Client via nuget.

RavenDb 4

Any plans to upgrade to RavenDb 4?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.