Skip to content

[FIX] use data= following request library documentation - #3

Closed
lfreeke wants to merge 12 commits into
16.0-add-base_external_system_ms_client_assertionfrom
16.0-base_external_system_oauth_fix
Closed

lfreeke wants to merge 12 commits into
16.0-add-base_external_system_ms_client_assertionfrom
16.0-base_external_system_oauth_fix

Conversation

@lfreeke

@lfreeke lfreeke commented Jul 31, 2026

Copy link
Copy Markdown

No description provided.

@lfreeke

lfreeke commented Jul 31, 2026

Copy link
Copy Markdown
Author

@NL66278 Could you have a look at this fix?
I was able to authenticate with oauth service.

@@ -53,7 +53,7 @@ def _get_access_token_basic(self):
}
basic = HTTPBasicAuth(self.client_id, self.client_secret)
response = requests.post(

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The name of the parameter is indeed data not params. For sending json data there is another keyword parameter `json': https://github.com/psf/requests/blob/414f0513c33883adf6f2b46901d4f0b38a455851/src/requests/api.py#L117

@lfreeke
lfreeke changed the base branch from 16.0-mig-base_external_system_oauth to 16.0-add-base_external_system_ms_client_assertion September 14, 2026 10:58
@lfreeke lfreeke closed this Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants