Giter VIP home page Giter VIP logo

Comments (19)

alextochetto avatar alextochetto commented on July 25, 2024 2

I migrate the project to aspnetcore 2, using framework 4.6.1 and netstandard2.0
https://github.com/alextochetto/aspnetcore-identity-mongodb

from aspnet-identity-mongo.

alextochetto avatar alextochetto commented on July 25, 2024 2

@GODBS
I migrate the project to aspnetcore 2, using framework 4.6.1 and netstandard2.0
https://github.com/alextochetto/aspnetcore-identity-mongodb
try this one
at http://alextochetto.com/aspnet-core-2-autenticacao-de-usuario-no-mongodb/
there is an examplo of implementation, it´s in portuguese, but!!
you need to download this package https://github.com/alextochetto/aspnetcore-identity-mongodb
and add as a reference in the project because I don´t have permittion to publish at NuGet because the package has "Microsoft" in it´s name.

from aspnet-identity-mongo.

alextochetto avatar alextochetto commented on July 25, 2024 2

Hi @rhlrajput I'll try on mac

from aspnet-identity-mongo.

matteofabbri avatar matteofabbri commented on July 25, 2024 2

Hi guys, after struggling to make it work core 2, i ended to write from scratch a new version for that framework.
I would like to know what you thing about it

https://github.com/matteofabbri/Microsoft.AspNetCore.Identity.Mongo

from aspnet-identity-mongo.

alextochetto avatar alextochetto commented on July 25, 2024 1

Hi @huzaynbolt
I migrate the project to aspnetcore 2, using framework 4.6.1 and netstandard2.0
https://github.com/alextochetto/aspnetcore-identity-mongodb
try this one
at http://alextochetto.com/aspnet-core-2-autenticacao-de-usuario-no-mongodb/
there is an examplo of implementation, it´s in portuguese, but!!
regards

from aspnet-identity-mongo.

alextochetto avatar alextochetto commented on July 25, 2024 1

@rhlrajput I update the solution, and now it's working on mac too.
screen shot 2018-02-08 at 17 00 25

from aspnet-identity-mongo.

habyphael avatar habyphael commented on July 25, 2024 1

@alextochetto The solution worked like magic. Thanks

from aspnet-identity-mongo.

Tagman avatar Tagman commented on July 25, 2024 1

@matteofabbri thank you aswell. Your implementation worked out in the end for me.

from aspnet-identity-mongo.

david-ae avatar david-ae commented on July 25, 2024 1

@alextochetto The solution worked for me. Thanks a lot.

from aspnet-identity-mongo.

alextochetto avatar alextochetto commented on July 25, 2024

I have the same problem when create a default aspnet core 2 project on VS 2017. By default the project uses Microsoft.AspNetCore.All and the Microsoft.AspNetCore.Identity conflict with Microsoft.AspNetCore.Identity.MongoDB
At aspnet core 1, does not have this problema.

Error Message: Error CS7069 Reference to type 'IdentityBuilder' claims it is defined in 'Microsoft.AspNetCore.Identity', but it could not be found

from aspnet-identity-mongo.

huzaynbolt avatar huzaynbolt commented on July 25, 2024

@alextochetto Have how do you resolve the stated Issue, I have been battling with it for quite a while now, but have not been able to resolve it

from aspnet-identity-mongo.

huzaynbolt avatar huzaynbolt commented on July 25, 2024

I tried it but am getting this error Unable to resolve service for type 'Microsoft.AspNetCore.Identity.UserManager`1[Microsoft.AspNetCore.Identity.IdentityUser]

from aspnet-identity-mongo.

alextochetto avatar alextochetto commented on July 25, 2024

@huzaynbolt you need to download this package https://github.com/alextochetto/aspnetcore-identity-mongodb
and add as a reference in the project.

from aspnet-identity-mongo.

mykeels avatar mykeels commented on July 25, 2024

@alextochetto could you or @g0t4 host the updated package for dotnet core 2.0 on Nuget? It'll be really helpful.

from aspnet-identity-mongo.

alextochetto avatar alextochetto commented on July 25, 2024

Hi @mykeels sorry for my late, I was travelling!
I migrate the project to aspnetcore 2, using framework 4.6.1 and netstandard2.0
https://github.com/alextochetto/aspnetcore-identity-mongodb
try this one
at http://alextochetto.com/aspnet-core-2-autenticacao-de-usuario-no-mongodb/
there is an examplo of implementation, it´s in portuguese, but!!
you need to download this package https://github.com/alextochetto/aspnetcore-identity-mongodb
and add as a reference in the project because I don´t have permittion to publish at NuGet because the package has "Microsoft" in it´s name.

from aspnet-identity-mongo.

GODBS avatar GODBS commented on July 25, 2024

I have the same issue
Error Message: Error CS7069 Reference to type 'IdentityBuilder' claims it is defined in 'Microsoft.AspNetCore.Identity', but it could not be found

from aspnet-identity-mongo.

rhlrajput avatar rhlrajput commented on July 25, 2024

@alextochetto Tried on mac, but no success. I read ur blog can you elaborate more what needs to be done? I have same issue.

from aspnet-identity-mongo.

alextochetto avatar alextochetto commented on July 25, 2024

Hi @matteofabbri I already did it, look at:
https://github.com/alextochetto/aspnetcore-identity-mongodb

from aspnet-identity-mongo.

matteofabbri avatar matteofabbri commented on July 25, 2024

@alextochetto i checked it out and it looks great, it includes a lot of stuff that i missed in my implementation but is really buggy, it drove me crazy to use it in my website.
Some stuff that i noticed: claims are apparently ignored, maybe i'm doing something wrong i don't know, role name and normalized name are confused.

Example:

  • Assign the role "blog" to a user
  • [Authorize(Roles = "blog")] doesn't work
  • [Authorize(Roles = "BLOG")] works

I'm gonna try to find the time to investigate and fix those problem

from aspnet-identity-mongo.

Related Issues (20)

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.