Age | Commit message (Collapse) | Author |
|
|
|
|
|
When running flask with multiple threads/workers, as happens when
using gunicorn, there is a potential for more than one thread running
with an expired token, leading to multiple uncoordinated token
refreshes.
This commit coordinates the threads in the case there is need to
refresh a token, ensuring only one thread does the token refresh.
|
|
* Introduce the function `auth_server_jwks()` to use for fetching the
keys from the session if present, or from the server when absent or
out-of-date. It also handles updating the keys in the session.
* Remove the unnecessary verification of JWKs until the point where
that is needed, i.e. at the point(s) where there is need to verify
authorisation.
|
|
|
|
Override the `client_secret_post` auth method to use JSON rather than
FORMDATA in order to gain some consistency while communicating with
the auth server.
|
|
|
|
* Call the correct __post__ function
* Set up the headers appropriately
|
|
|
|
|
|
Adds utilities to handle talking to the authentication/authorisation
server.
|