kroketio / quart-keycloak

Add Keycloak OpenID Connect support to your Quart application.
BSD 3-Clause "New" or "Revised" License
12 stars 4 forks source link

add trust_env to enable proxy usage #5

Closed rubikscuber closed 1 year ago

rubikscuber commented 1 year ago

Allow aiohttp.ClientSession to use HTTP_PROXY or HTTPS_PROXY environment variables

kroketio commented 1 year ago

trust_env as parameter is a bit ambiguous in the context of the Keycloak class.

6 introduces parameter aiohttp_clientsession_opts instead, which gives full control over each aiohttp.ClientSession initialization (not only trust_env). So you could do:

keycloak = Keycloak(app, aiohttp_clientsession_opts={'trust_env': True})
kroketio commented 1 year ago

pypi will be updated later this week