An open API service indexing awesome lists of open source software.

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

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/