Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AuthenticationScheme: Bearer was not authenticated #164

Closed
MrDave1999 opened this issue Feb 12, 2023 · 0 comments
Closed

AuthenticationScheme: Bearer was not authenticated #164

MrDave1999 opened this issue Feb 12, 2023 · 0 comments
Labels
invalid This doesn't seem right not implemented Not implemented for some reason

Comments

@MrDave1999
Copy link
Member

MrDave1999 commented Feb 12, 2023

When accessing an unprotected endpoint such as http://localhost:3978/api/gender, the following message is displayed:

dbug: DentallApp.Extensions.AuthenticationJwtBearer+CustomJwtBearerHandler[9]
      AuthenticationScheme: Bearer was not authenticated.
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]

This should not be displayed because at no point is the Authorization header included in the HTTP request, i.e. the Bearer does not actually provide any access token.

This is strange behavior, as this does not impair the operation of the application. An important detail is that this message is only displayed in development mode.
If we change ASPNETCORE_ENVIRONMENT to Production, the message disappears.

PD: This behavior arose from PR #136.

@MrDave1999 MrDave1999 added the invalid This doesn't seem right label Feb 12, 2023
@MrDave1999 MrDave1999 added this to the Backlog milestone Apr 20, 2023
@MrDave1999 MrDave1999 added the not implemented Not implemented for some reason label Jun 23, 2024
@MrDave1999 MrDave1999 removed this from the Backlog milestone Jun 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right not implemented Not implemented for some reason
Projects
None yet
Development

No branches or pull requests

1 participant