Multiple ways to add Auth Layer to FastAPI
Tech Tinkering with FastAPI interfaces
The Zen of Python says, “There should be one-- and preferably only one-- obvious way to do it.”
Oftentimes, you can find even the most famous Python libraries not abiding by this rule.
FastAPI is not an exception. Here is a blog post based on my recent exploration of adding an auth layer to my APIs
It should’ve been straightforward, but it was not.
This is clearly what I intend to do with Tech Tinkering. Send you little blurbs of my long experimentation. I hope you like it
Happy 2024 :)