https://github.com/plusauth/plusauth-python-starter
Python starter project demonstrating OIDC authentication using Flask and flask-pyoidc.
https://github.com/plusauth/plusauth-python-starter
example flask oidc openidconnect plusauth python python3
Last synced: 10 months ago
JSON representation
Python starter project demonstrating OIDC authentication using Flask and flask-pyoidc.
- Host: GitHub
- URL: https://github.com/plusauth/plusauth-python-starter
- Owner: PlusAuth
- Created: 2020-06-19T15:46:05.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T10:49:52.000Z (about 3 years ago)
- Last Synced: 2025-01-30T11:23:37.498Z (12 months ago)
- Topics: example, flask, oidc, openidconnect, plusauth, python, python3
- Language: HTML
- Homepage:
- Size: 53.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
PlusAuth Python Flask Starter Project
Simple Python Flask project demonstrates basic authentication flows with PlusAuth
Explore the PlusAuth Python Flask docs »
Table of Contents
---
## About The Project
It is a simple Python Flask project demonstrating basic authentication flows such as register, login, and logout. To keep things simple, Flask is used as the server framework and `flask-pyoidc` for authentication.
## Prerequisites
Before running the project, you must first follow these steps:
1. Create a PlusAuth account and a tenant at https://dashboard.plusauth.com
2. Navigate to the `Clients` tab. Create a client of type `Regular Web Application`
3. Go to the details page of the client that you've just created and set the following fields as:
- Redirect Uris: http://localhost:3000/login/callback
- Post-Logout Redirect Uris: http://localhost:3000/logout
Finally, write down your Client Id and Client Secret for server configuration
## Getting Started
First, we need to configure the server. Rename `.env.example` file as just`.env`.
Then configure the `.env` file using your Client Id, Client Secret, and PlusAuth tenant name.
Finally, install requirements & start the server:
### Using Pip
pip3 install -r requirements.txt
python3 index.py
### Using Pipenv
pipenv install
pipenv run python3 index.py
The example is hosted at http://localhost:3000/
## License
This project is licensed under the MIT license. See the [LICENSE](LICENSE) file for more info.
## What is PlusAuth
PlusAuth helps individuals, teams, and organizations to implement authorization and authentication systems in a secure, flexible and easy way.