plotly / dash-enterprise-auth

Python Auth Client for Dash Enterprise
MIT License
4 stars 2 forks source link

load signing keys from keycloak only once for get_username in DE5 #37

Open michaelbabyn opened 5 months ago

michaelbabyn commented 5 months ago

This PR resolves https://github.com/plotly/dekn/issues/6812 by preventing auth.get_username() from making any requests to keycloak. The signing keys are loaded when the app starts and since they don't change very often, I think it should be fine.