flask-oauthlib

500 internal server error while authenticating Microsoft graph


I am using python and flask for making web pages. I am trying to authenticate Microsoft graph but its giving an error. Please see the picture below:enter image description here


Solution

  • Use debug mode to see debug information.

    1. Flask > 1.0, use FLASK_ENV=development.
    2. Flask < 1.0, use FLASK_DEBUG=1.

    Flask-OAuthlib itself doesn't support proxy. You can try https://github.com/lepture/authlib it uses requests for OAuth client. Requests support proxy http://docs.python-requests.org/en/master/user/advanced/#proxies