Estoy tratando de iniciar sesión en Linkedin, tengo este problema.
flask_oauthlib.client.OAuthException: Invalid response from linkedin
this is my callback function.
@app.route('/login/authorized')
def authorized():
resp = linkedin.authorized_response()
# return resp
if resp is None:
return 'Access denied: reason=%s error=%s' % (
request.args['error_reason'],
request.args['error_description']
)
session['linkedin_token'] = (resp['access_token'], '')
me = linkedin.get('people/~/email-address')
return jsonify(me.data)