hi @chrisK824, my use case is that I have a router which has a global dependency to validate jwt tokens. then, i also have endpoints which come under the secure router where i want to check for the permissions, so for example #11554
hi @WilliamStam, my use case is that I have a router which has a global dependency to validate jwt tokens. then, i also have endpoints which come under the secure router where i want to check for the permissions, so for example
hi @WilliamStam, my use case is that I have a router which has a global dependency to validate jwt tokens. then, i also have endpoints which come under the secure router where i want to check for the permissions, so for example
and PermissionsValidator is defined as:
it seems to me that the jwt token will be validated twice in this scenario - is it possible to do it only once?
Originally posted by @rohantandon25 in https://github.com/tiangolo/fastapi/discussions/10388#discussioncomment-9359260