Skip to content

Commit

Permalink
add debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mfshao committed Aug 19, 2024
1 parent 757972b commit 267e1fb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions wts/resources/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 267e1fb

Please sign in to comment.