Skip to content

API key-based authentication. This is authentication in the form of an arbitrary string with an arbitrary length, which gives access to an API.

Notifications You must be signed in to change notification settings

Shubhamdutta2000/API-Key-Authentication-with-FastAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Key Authentication with FastAPI

This is authentication in the form of an arbitrary string of any length that allows access to an API.

Feature:

  • DB Connection Configuration with PostgresSQL and store all db creds in .env file and load it from seperate EnvConfig file.
  • API Key Authentication for:
    • Checking for a query parameter containing the API key
    • Checking for a header containing the API key
    • Checking for a cookie containing the API key
  • GET Endpoint to expose all data with proper Pagination (of particular page and limit)
  • When no query parameter is specified in the api, the page and limit are set by default which are stored in .env file.

References:

About

API key-based authentication. This is authentication in the form of an arbitrary string with an arbitrary length, which gives access to an API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published