Giter Club home page Giter Club logo

aspnetcore.identity.ravendb's People

Contributors

maqduni avatar michaelschnyder avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

aspnetcore.identity.ravendb's Issues

Claims cannot be removed from role

There is an issue regardingthe method RemoveClaimAsync the following code fails because the list that is enummerated will change during execution.

var claims = role.Claims.Where(c => c.ClaimValue == claim.Value).
foreach (var c in claims)
{
    role.Claims.Remove(c);
}

Throws
System.InvalidOperationException: 'Collection was modified; enumeration operation may not execute.'

I'll try to provide a PR to resolve this

TypeLoadException: Inheritance security rules violated

by type: 'System.Net.Http.WebRequestHandler'. Derived types must either match the security accessibility of the base type or be less accessible.

I get this on ALL ravendb operations (query/store,...)

any idea what this might be ?
(dont worry, think its not directly related to this project, just hoping you mightve encountered this before)

roles not working ?

i do this in startup/configure

              var newRole = new IdentityRole { Name = "Admin" };
              var result = await roleman.CreateAsync(newRole);
              if (result.Succeeded)
              {
                  var user = new ApplicationUser();
                  user.UserName = "jos";
                  user.Email = "******";

                  string userPWD = "******";

                  var res= await userman.CreateAsync(user, userPWD);
                  if (res.Succeeded)
                  {
                      var added=await userman.AddToRoleAsync(user, "Admin"); 
                  }

yet, i cant use this user to log in ,
and the role isnt assigned in the user nor the role document ?

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.