Istio Authentication with Internal Service

Hi everyone.
I currently need that every time a service is required to be accessed, you must first verify in another internal service if you are logged in.
There is currently the logon logic within my service.
My question is: how can I do that if I want to consume another service within my network? First I will validate that the login exists. The service offers a 200 or a 401.

I’m looking for options with EnvoyFilter but I can’t find a solution.

It is something similar to an authentication with Auth0 but this time I must validate against an internal service.

If you can help me, I would greatly appreciate it.