Open peppelinux opened 2 years ago
How will sync methods call this async method? Sync methods cannot spawn another event loop if the underlying framework is already running one. We might have to port this library to async the entire chain. As async is a hot trend in async frameworks like FastAPI and Starlite, they will be benefitted from a complete async OIDC lib.
We often talked in our idpy meetings about the possibility to speed up the http requests using an async approach. Well, me and Roland started this with asyncio and an abstract class with the same property of the python requests objects, this allows us to leave the legacy code as it is.
The following PoC was inspired by the code already available in spid-cie-oidc-django and it has the following deps:
Code: