This project is an example of a website that uses Authify for user authentication and authorization. The website uses OAuth2 to authenticate users and authorize them to log in.
- User authentication with OAuth2
- Fetching user profile information from the Identity Provider (IDP)
- User login and logout functionality
- Python 3.x
-
Clone the repository:
git clone https://github.com/Toad882/oauth_website_example_public.git cd oauth_website_example_public -
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Set up environment variables:
export CLIENT_ID='your-client-id' export CLIENT_SECRET='your-client-secret' export CLIENT_SECRET_KEY='your-client-secret-key'
-
Run the Flask application:
python app.py
-
Open your web browser and navigate to
https://localhost:5001.
app.py: Main application fileclient_templates/: HTML templates for the application.gitignore: Git ignore fileREADME.md: Project documentation
This project is licensed under the GPL-3.0 License.