https://github.com/wasabina67/flask-dance-example
Flask dance example
https://github.com/wasabina67/flask-dance-example
devcontainer docker-compose flask flask-dance
Last synced: about 2 months ago
JSON representation
Flask dance example
- Host: GitHub
- URL: https://github.com/wasabina67/flask-dance-example
- Owner: wasabina67
- License: mit
- Created: 2024-11-29T14:52:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-04T14:31:30.000Z (over 1 year ago)
- Last Synced: 2025-01-30T16:19:01.898Z (over 1 year ago)
- Topics: devcontainer, docker-compose, flask, flask-dance
- Language: Python
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flask-dance-example
Flask dance example
## Setup
- [Flask DANCE](https://flask-dance.readthedocs.io/en/latest/)
- [GitHub Quickstart | Flask DANCE](https://flask-dance.readthedocs.io/en/v1.3.0/quickstarts/github.html)
### Authorization callback URL
```
https://localhost:3000/login/github/authorized
```
### Create .env
```bash
cp -p .env.example .env
```
- SECRET_KEY
- Flask secret key
- CLIENT_ID
- The client ID for your application on GitHub
- CLIENT_SECRET
- The client secret for your application on GitHub
## Run
### Using `make_github_blueprint`
```bash
python src/app.py
```
Open https://localhost:3000/
### Using `OAuth2ConsumerBlueprint`
```bash
python src/app2.py
```
Open https://localhost:3000/