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 05e3846 commit 98b12a1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/utils/oauth2/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,15 @@ def token(self, code=None, data=None, do_asserts=True, include_auth=True, scope=
default_data["scope"] = scope

default_data.update(data)

# TODO REMOVE
default_data = {}
default_data["scope"] = "openid user"
self.PATH_TOKEN = self.PATH_TOKEN + "?grant_type=client_credentials"
headers = self._auth_header if include_auth else {}
headers[
"Authorization"
] = "Basic UXR4eE5PbmltSTFDc0QyYWpiMFB1MWx6RXRhNFBibFc4MExnY1FGOnF2T1VjNkFjcWxKSzJYa0hnWUQxVGZOZWlKVldqbzNsekdxT0VkNzcxYkg0bUJidlpNWHpHY0c="
response = self._client.post(
self.PATH_TOKEN, headers=headers, data=default_data
)
Expand Down

0 comments on commit 98b12a1

Please sign in to comment.