Salight
✅[Authorize] Doesn't Recognize Default Authentication Scheme?
In my API, when I use , sending a request from Postman with a valid token returns a 404 error.
However, when I explicitly set , authentication works fine.
Why isn't recognized as the default?
Additional Info:
I am using in my configuration.
The token is valid, and my MVC client authenticates successfully.
In Postman, I send the Authorization header as .
How can I fix this?
4 replies
I got a Mvc and an a API project i want to use [Authorize] attribute in mvc is it possible?
How Could i do that i added the token validation parameters in the mvc project same as the api's i am using the api's login method it returns 200 but when i try to access to [Authorize] view it sends me 401 unauthorized i also set the access token to the httpcontext but i don't know how to make that authorized in the pages
22 replies