I can't authorize an endpoint in asp.net core app
I have a simple backend app. I have and endpoint called
/notes
for fetching notes. I have added RequireAuthorization()
to it but I can't authorize the users. I have written the login and signup endpoints myself so that they send jwt tokens.
Here is the link to my code in github: https://github.com/OmidNejadabbasi/notit-backendGitHub
GitHub - OmidNejadabbasi/notit-backend: The backend for notit app
The backend for notit app. Contribute to OmidNejadabbasi/notit-backend development by creating an account on GitHub.
2 Replies
Some advice: it's quite a lot of effort to open a repo, figure out what's going on, find where the problematic code is, figure out what it's doing, try and work out "can't authorize the users" actually means, and what might be causing it, etc. You're much, much more likely to get help if you can condense the problem down into something short, which can be posted here as code snippets / error messages / etc, which people can just skim through
It's like going to a garage and saying "I'm having trouble with my car. Yes, it's at home on my drive". You're much more likely to get the problem solved if you take the car to the garage, and point out exactly what's wrong
Stack Overflow
How to create a Minimal, Reproducible Example - Help Center
Stack Overflow | The World’s Largest Online Community for Developers