From 2348d92bb03e0cdfde00ef42af767e63a7f112df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89loi=20Rivard?= Date: Sun, 3 Oct 2021 13:46:52 +0200 Subject: [PATCH] Additional logs --- canaille/oauth.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/canaille/oauth.py b/canaille/oauth.py index d24664d6..a7e6617b 100644 --- a/canaille/oauth.py +++ b/canaille/oauth.py @@ -78,7 +78,10 @@ def authorize(): # CONSENT - consents = Consent.filter(oauthClient=client.dn, oauthSubject=user.dn,) + consents = Consent.filter( + oauthClient=client.dn, + oauthSubject=user.dn, + ) consents = [c for c in consents if not c.oauthRevokationDate] consent = consents[0] if consents else None @@ -157,6 +160,7 @@ def introspect_token(): response = authorization.create_endpoint_response( IntrospectionEndpoint.ENDPOINT_NAME ) + current_app.logger.debug("introspection endpoint response: %s", response.json) return response @@ -166,6 +170,7 @@ def revoke_token(): "revokation endpoint request: POST: %s", request.form.to_dict(flat=False) ) response = authorization.create_endpoint_response(RevocationEndpoint.ENDPOINT_NAME) + current_app.logger.debug("revokation endpoint response: %s", response.json) return response