diff --git a/wts/resources/oauth2.py b/wts/resources/oauth2.py index 189ec2b..242f008 100644 --- a/wts/resources/oauth2.py +++ b/wts/resources/oauth2.py @@ -8,9 +8,14 @@ from ..models import RefreshToken, db from ..utils import get_oauth_client +import logging +import sys def client_do_authorize(): + log = logging.getLogger("authlib") + log.addHandler(logging.StreamHandler(sys.stdout)) + log.setLevel(logging.DEBUG) requested_idp = flask.session.get("idp", "default") client = get_oauth_client(idp=requested_idp) token_url = client.metadata["access_token_url"]