Authenticate to Dash app using Google OAuth
Project description
Dash Google OAuth
This is a simple library using Google OAuth to authenticate and view a Dash app written based on dash-auth.
Setup
$ pip install dash-google-oauth
Define following EVN variables:
FLASK_SECRET_KEY
GOOGLE_AUTH_URL
GOOGLE_AUTH_SCOPE
GOOGLE_AUTH_TOKEN_URI
GOOGLE_AUTH_REDIRECT_URI
GOOGLE_AUTH_USER_INFO_URL
GOOGLE_AUTH_CLIENT_ID
GOOGLE_AUTH_CLIENT_SECRET
Example envs using python-dotenv:
FLASK_SECRET_KEY="..."
GOOGLE_AUTH_URL=https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&prompt=consent
GOOGLE_AUTH_SCOPE="openid email profile"
GOOGLE_AUTH_TOKEN_URI=https://oauth2.googleapis.com/token
GOOGLE_AUTH_REDIRECT_URI=http://localhost:5000/login/callback
GOOGLE_AUTH_USER_INFO_URL=https://www.googleapis.com/userinfo/v2/me
GOOGLE_AUTH_CLIENT_ID="..."
GOOGLE_AUTH_CLIENT_SECRET="..."
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dash-google-oauth-1.0.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for dash_google_oauth-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e0f617a9ae5f028fb430ba594b7f6ac78abcd18d967f8afca084f9e56260ac0 |
|
MD5 | 630bc43c64a27b49e27a50fbd474bb6c |
|
BLAKE2b-256 | 3661e3e51121ee02dea8d6d89a432d671a54cce9ab76a08cd3eb8c554fdb4a6e |