In my last articles (FastAPI — How to add basic and cookie authentication and FastAPI authentication revisited: Enabling API key authentication) I wrote about implementing two kinds of authentication (Basic and API) for FastAPI, which are ‘local’ authentication options. With ‘local’ authentication I mean that a username/password or API key are checked with FastAPI without using an external authentication provider.
This article will cover the case of connecting to an external authentication provider, in this case, Google. With this set-up, you are able to give Google users access to the API. The example code can be leveraged to include other…
Now I am exploring a new type of authentication, API key-based authentication. This is authentication in the form of an arbitrary string with an arbitrary length, which gives access to an API.
For the API it would be great if it supports API key validation by:
In my work as a Data Rebel, I encounter many challenges to help unlock, enrich and use data to help our customers. In the last couple of years, I have come to the conclusion that at this moment in time, the best way to scale and provide data-driven solutions is by creating API’s. These API’s can be used and consumed by your own API’s our by other consumers like for example a customer-faced website.
Creative Data Rebel