Getting 404 error instead of 401, when token is expired or when token is not passed
Hi,i am working with aspnet core WEB Api application.
To maintain security in my application, i am generating JWT token as access_token. and i am sending this token along with request headers.
i have added [Authorize] tag in controller method.
when i am sending request with out token or invalid token, i am getting 404 error instead of 401 error.
In statup.cs file
i have added a "app.UseIdentity();". This is required for signInManger to validate login.
if i remove "app.UseIdentity();" i am getting 401 error.
can any one help me out regarding this .. i want to use both JWT Token validation and Identity.