JWT validation does not validate signature and lifetime #6419
Unanswered
m-jevremovic-un1
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I would appreciate your help on this one.
I am using:
.Net Core 7.0
HotChocolate 13.0.5
Program.cs config:
This is how I have configured Authentication:
This is how I configured gql:
Middleware:
The problem I am facing that authentication/authorisation works as expected if I use some random token (401 is properly set), but it does not work as expected if token has expired or it has invalid signature or it does not have signature at all. In that case I am passing authentication and I can access resource, even id token is expired, or signature is not present.
Am I missing something or I have not configured something?
Beta Was this translation helpful? Give feedback.
All reactions