Welcome to the FastAPI Authentication Workshop Demo Code repository! This repository contains the demo code used in the workshop for implementing authentication with FastAPI.
In this workshop, participants learn how to implement authentication in FastAPI to secure their APIs. We cover various authentication methods, including JWT (JSON Web Tokens) and OAuth2, and how to integrate them into FastAPI applications.
To get started with the demo code, follow these steps:
Clone this repository to your local machine using the following command:
git clone -b demo-code --single-branch https://github.com/mohsenGhalem/gdsc-fastapi-25-feb.git
Navigate to the cloned repository directory:
cd gdsc-fastapi-25-feb
Install the required dependencies using pip
and the provided requirements.txt
file:
pip install -r requirements.txt
Explore the demo code in the repository. You will find examples of implementing basic authentication, JWT authentication, OAuth2 authentication, and testing authentication in FastAPI.
For workshop slides and additional resources, please refer to the workshop materials provided separately.
If you encounter any issues with the demo code or have any feedback, please open an issue in this repository.
This demo code is provided under the MIT License.