Skip to content

Toad882/oauth_website_example_public

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OAuth Website Example

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.

Features

  • User authentication with OAuth2
  • Fetching user profile information from the Identity Provider (IDP)
  • User login and logout functionality

Requirements

  • Python 3.x

Installation

  1. Clone the repository:

    git clone https://github.com/Toad882/oauth_website_example_public.git
    cd oauth_website_example_public
  2. Create a virtual environment and activate it:

    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  3. Install the required packages:

    pip install -r requirements.txt
  4. Set up environment variables:

    export CLIENT_ID='your-client-id'
    export CLIENT_SECRET='your-client-secret'
    export CLIENT_SECRET_KEY='your-client-secret-key'

Usage

  1. Run the Flask application:

    python app.py
  2. Open your web browser and navigate to https://localhost:5001.

Project Structure

  • app.py: Main application file
  • client_templates/: HTML templates for the application
  • .gitignore: Git ignore file
  • README.md: Project documentation

License

This project is licensed under the GPL-3.0 License.

About

Example of a website that implements Authify as identity provider

Resources

License

Stars

Watchers

Forks