All Projects → lchapo → dash-google-auth

lchapo / dash-google-auth

Licence: MIT license
(Deprecated) Dash Extension for Google OAuth

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to dash-google-auth

Hiitpi
A workout trainer Dash/Flask app that helps track your HIIT workouts by analyzing real-time video streaming from your sweet Pi using machine learning and Edge TPU..
Stars: ✭ 106 (+76.67%)
Mutual labels:  plotly, dash
Real Time Sentiment Tracking On Twitter For Brand Improvement And Trend Recognition
A real-time interactive web app based on data pipelines using streaming Twitter data, automated sentiment analysis, and MySQL&PostgreSQL database (Deployed on Heroku)
Stars: ✭ 127 (+111.67%)
Mutual labels:  plotly, dash
Dash Stock Tickers Demo App
Dash Demo App - Stock Tickers
Stars: ✭ 108 (+80%)
Mutual labels:  plotly, dash
Crypto Whale Watching App
Python Dash app that tracks whale activity in cryptocurrency markets.
Stars: ✭ 389 (+548.33%)
Mutual labels:  plotly, dash
Dash
Analytical Web Apps for Python, R, Julia, and Jupyter. No JavaScript Required.
Stars: ✭ 15,592 (+25886.67%)
Mutual labels:  plotly, dash
Hexapod Robot Simulator
A hexapod robot simulator built from first principles
Stars: ✭ 577 (+861.67%)
Mutual labels:  plotly, dash
2019-nCoV-dash
新型冠状病毒(2019-nCoV)肺炎(COVID-19)疫情展示
Stars: ✭ 13 (-78.33%)
Mutual labels:  plotly, dash
Dashr
Dash for R - An R interface to the Dash ecosystem for creating analytic web applications
Stars: ✭ 337 (+461.67%)
Mutual labels:  plotly, dash
Slapdash
Boilerplate for bootstrapping scalable multi-page Dash applications
Stars: ✭ 225 (+275%)
Mutual labels:  plotly, dash
Dash Flask Login
Implementation of Flask-login on top of Dash.
Stars: ✭ 158 (+163.33%)
Mutual labels:  plotly, dash
Explainerdashboard
Quickly build Explainable AI dashboards that show the inner workings of so-called "blackbox" machine learning models.
Stars: ✭ 378 (+530%)
Mutual labels:  plotly, dash
dash-mantine-components
Plotly Dash components based on Mantine React Components
Stars: ✭ 263 (+338.33%)
Mutual labels:  plotly, dash
Dash Table
A First-Class Interactive DataTable for Dash
Stars: ✭ 382 (+536.67%)
Mutual labels:  plotly, dash
Fitly
Self hosted web analytics for endurance athletes
Stars: ✭ 65 (+8.33%)
Mutual labels:  plotly, dash
Dash Docs
📖 The Official Dash Userguide & Documentation
Stars: ✭ 338 (+463.33%)
Mutual labels:  plotly, dash
Dash Sample Apps
Open-source demos hosted on Dash Gallery
Stars: ✭ 2,090 (+3383.33%)
Mutual labels:  plotly, dash
bigfoot-dash-app
An example application for exploring Bigfoot data with Plotly's Dash.
Stars: ✭ 23 (-61.67%)
Mutual labels:  plotly, dash
Dash Cytoscape
Interactive network visualization in Python and Dash, powered by Cytoscape.js
Stars: ✭ 309 (+415%)
Mutual labels:  plotly, dash
Dash Oil And Gas Demo
Dash Demo App - New York Oil and Gas
Stars: ✭ 156 (+160%)
Mutual labels:  plotly, dash
Dash.jl
Dash for Julia - A Julia interface to the Dash ecosystem for creating analytic web applications in Julia. No JavaScript required.
Stars: ✭ 248 (+313.33%)
Mutual labels:  plotly, dash

Deprecation Warning

This project is no longer actively maintained and is incompatible with newer versions of Dash (>=1.0). Please consider forking this repo or see the Dash docs on officially supported authentication mechanisms.

Dash Google Auth

Dash Google Auth is a simple library using Google OAuth to authenticate and view a Dash app.

This Library uses Flask Dance and a modified version of Plotly's own dash auth for authentication.

Basic Use

Authentication can be added to your Dash application using the GoogleOAuth class, i.e.

from dash import Dash
from flask import Flask
from dash_google_auth import GoogleOAuth

server = Flask(__name__)
server.config.update({
  'GOOGLE_OAUTH_CLIENT_ID': ...,
  'GOOGLE_OAUTH_CLIENT_SECRET': ...,
})

app = Dash(__name__, server=server, url_base_pathname='/', auth='auth')

authorized_emails = [...]
additional_scopes = [...]
auth = GoogleOAuth(app, authorized_emails, additional_scopes)

# your Dash app here :)
...

Example

Steps to try this out yourself:

  1. Install the dash-google-auth library using pip:

    $ pip install dash-google-auth
  2. Follow the Flask Dance Guide to create an app on the google admin console

  3. Make a copy of app.py and set the variables (or set the corresponding environment variables):

    server.config["GOOGLE_OAUTH_CLIENT_ID"] = ...
    server.config["GOOGLE_OAUTH_CLIENT_SECRET"] = ...

    with values from the Google OAuth 2 client you should have set up in step 1. If you've set these up properly, you can find them at APIs & Services > Credentials under the section OAuth 2.0 client IDs.

  4. Replace authorized_emails in app.py with whatever Google emails you want to grant access to your app. In production, I'd recommend getting these from a database instead.

  5. Run python app.py and open localhost in a browser window to try it out! If the app loads automatically without prompting a Google login, that means you're already authenticated -- try using an incognito window in this case if you want to see the login experience for a new user.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].