FastAPI — authentication revisited: Enabling API key authentication

Nils de Bruin
4 min readMay 3, 2019

Intro

So, in my last article, I wrote about adding Basic Authentication to the example tutorial app, which is based on the excellent work of Sebastián Ramírez of the FastAPI framework.

Now I am exploring a new type of authentication, API key-based authentication. This is authentication in the form of an arbitrary string…

--

--