Skip to content

Commit

Permalink
add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tianj7 committed Apr 10, 2024
1 parent 2b2d92f commit 05e3846
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions fence/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ def check_endpoint_auth_method(self, method, endpoint):
"""
Only basic auth is supported. If anything else gets added, change this
"""
# TODO REMOVE
logger.info("checking endpoint and auth method")
logger.info("method is ")
logger.info(method)
Expand Down
9 changes: 8 additions & 1 deletion fence/oidc/oidc_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def authenticate(self, request, methods, endpoint):
"""
Override method from authlib
"""
# TODO REMOVE
logger.info("oidc_server.py cleintAuthentioncatoin authenticate")
logger.info("request is")
logger.info(request)
Expand Down Expand Up @@ -104,7 +105,13 @@ def create_token_response(self, request=None):
:param request: HTTP request instance
"""
request = self.create_oauth2_request(request)

# TODO REMOVE
logger.debug("request grant_type is")
logger.debug(request.grant_type)
logger.debug("request.client_id is ")
logger.debug(request.client_id)
logger.debug("request data is")
logger.debug(request.data)
try:
grant = self.get_token_grant(request)
except UnsupportedGrantTypeError as error:
Expand Down

0 comments on commit 05e3846

Please sign in to comment.