flask-social icon indicating copy to clipboard operation
flask-social copied to clipboard

Google provider

Open NamPNQ opened this issue 10 years ago • 4 comments

Google oauth1.0 is deprecated

NamPNQ avatar Jul 04 '14 09:07 NamPNQ

+1 - Google provider currently throws an exception with a successful API call

JonHMChan avatar Jul 22 '14 16:07 JonHMChan

I'm using flask security and thought flask social would be the way to get google api log in going for my site. Is flask social using a depreciated method?

vfr292 avatar Oct 09 '14 04:10 vfr292

It is - here's a quick fix I put in when on_login_failed is triggered

def on_login_failed(sender, provider, oauth_response):
    connection_values = get_connection_values_from_oauth_response(provider, oauth_response)
    if provider.name == "Google":
        name = connection_values['full_name']['givenName'] + " " + connection_values['full_name']['familyName']
        connection_values['display_name'] = name
        connection_values['full_name'] = name
    # rest of your code after this

JonHMChan avatar Oct 14 '14 17:10 JonHMChan

I started using flask-social about a week ago and do not see any problem with the google provider. I can successfully login.

I'd say this issue is obsolete.

exhuma avatar Mar 02 '16 17:03 exhuma