OAuth2 Demo With a Sidecar
Fleeting- External reference: https://gefyra.dev/usecases/oauth2-demo/
Use oauth2-proxy to check the access token validity, as long as manage sessions with cookies. But still lets the application access it to further treatment.
OAuth2-Proxy only passes authenticated traffic to the backend application. That breaks the application free from (potentially unsafe) custom OIDC code and authorization handling. This is standard procedure and should not be part of your code. Make use of this pattern when having this requirement.
An interesting use case of running debugpy.
python -m debugpy –wait-for-client –listen 0.0.0.0:5678 -m uvicorn main:app –host