Coder Social home page Coder Social logo

Comments (7)

alexandre-spieser avatar alexandre-spieser commented on June 3, 2024 1

Glad you managed to find the issue.
No not really, I would start with a Identity Server 4 example, then read the docs about ASP.NET integration and see if I can retrofit identity 2 with mongodb support into it. :)

from aspnetcore.identity.mongodbcore.

alexandre-spieser avatar alexandre-spieser commented on June 3, 2024 1

I also suggested a middleware-approach for handling JWTs, using OpenIdconnect server. Which you can take inspiration from here: https://stackoverflow.com/questions/37398276/how-can-i-validate-a-jwt-passed-via-cookies/39386631#39386631

Hope this helps!

from aspnetcore.identity.mongodbcore.

alexandre-spieser avatar alexandre-spieser commented on June 3, 2024

from aspnetcore.identity.mongodbcore.

mayankjanmejay avatar mayankjanmejay commented on June 3, 2024

Hi,

As you suggested I corrected the fields and checked the process using breakpoints. When I use the accompanied UI the breakpoint gets activated and everything works but when still when I replicate everything via postman even the breakpoint does not get activated.
image
image

from aspnetcore.identity.mongodbcore.

alexandre-spieser avatar alexandre-spieser commented on June 3, 2024

That's very strange, have you tried to post using the front end?
The model is

I have not changed anything with respect to the Identity example from MSFT.

The form post takes place here:

Never used postman for testing it sorry.

from aspnetcore.identity.mongodbcore.

mayankjanmejay avatar mayankjanmejay commented on June 3, 2024

Hi,
I worked out that it was the Anti Forgery Token which was not allowing the breakpoint to be initiated. After I removed that i was able to use postman.
Is your sample project a good starting point to make a api with jwt token auth?

from aspnetcore.identity.mongodbcore.

mayankjanmejay avatar mayankjanmejay commented on June 3, 2024

I got it working with your suggestion. Thank you very much

from aspnetcore.identity.mongodbcore.

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.