Giter Site home page Giter Site logo

dash-google-auth's People

Contributors

bgweber avatar joshbode avatar lchapo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

dash-google-auth's Issues

Feature request: logout

Is there a way to implement logging out?

Would be nice to have something similar to Plotly OAuth:

Finally, we can logout the user by clearing the cookies. To do so, you can create a logout button and insert it in the layout or use auth.logout() in a callback.

The logout button is just simply:

auth.create_logout_button(
        label='Sign out',
        redirect_to='https://plot.ly')]

Feature request: handle invalid tokens

Would be nice to handle invalid tokens, e.g. error types from oauthlib.oauth2.rfc6749.errors. As it stands, the client continues to receive 403 unauthorized until the token is deleted (session cleared).

No Google+ API traffic displayed on the Google Developers Console

I've been using your Google OAuth example in my Dash app but I ran into two different problems. Before your recent update, I was getting a user rate limit quota error even though my application was not making more than 500 requests every 100 seconds. After the changes, however, I don't get this error but when I checked how much I was using in terms of requests on the console, no traffic was shown. The same happens when I use your example app. Why is this happening? I guess the requests are not associated with an API console project correctly or maybe Google OAuth doesn't work as expected.

Redirected automatically to localhost when moving to production environment

Upon moving this to my production server I'm running into the issue that I am automatically redirected to http://localhost/login/google/authorized which is not on my authorised URI list on google, rather than redirecting to https://mydomain.com/login/google/authorized.

I have looked through the code as well as the flask_dance/make_google_blueprint docs but can't seem to find where this default routing to localhost would happen.

Any advice would be greatly appreciated.

Error: invalid_client

I did all of the steps from the README.md file and replaced the variables for client ID and client secret with real values like this:

app.server.config["GOOGLE_OAUTH_CLIENT_ID"] = os.environ.get("client-id-here")
        app.server.config["GOOGLE_OAUTH_CLIENT_SECRET"] = os.environ.get("client-secret-here")

However, when I ran python app.py and opened "localhost:5000" in my browser I got the following error:

401. That’s an error.

Error: invalid_client

The OAuth client was not found.

Request Details
response_type=code
client_id=None
redirect_uri=http://localhost:5000/login/google/authorized
scope=profile email
state=1kPQ9gCwR3EkGbXV5LdnPLu1TgQEpn
access_type=offline
approval_prompt=force
That’s all we know.

I put the following into the “Authorized redirect URIs” field: http://localhost:5000/login/google/authorized

When I tried out the example from the Flask Dance Guide link you have provided, I got redirected to Google login. After I logged in I tried running app.py again and this time I could access the page because I was already authenticated.

Is there a way to fix this problem? I would like to your google example in my application, thank you.

Release new PyPI Package

Can you please release a new version of the package on PyPI which has the latest changes?
Thanks!

Wildcard authorized emails?

How might one allow wildcard email authorization? E.g. all emails for a Google authentication domain, such as a company's staff. Is there an approach to enable all organization users, or specific email domains?

Update README and make clearer documentation

Could you consider updating the README in which it links to the flask-dance example to make and app on the google-admin-console. Also in the documentation is not clear about the redirects URLs or where to handle them when making the auth

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.