Skip to content

Conversation

@kushaldas
Copy link

@kushaldas kushaldas commented Jan 24, 2022

Also updates the tests and applies black as formatting on the
codebase.

Maybe I should remove the hook and use update the auth_flow like the example in https://www.python-httpx.org/advanced/#customizing-authentication

@puiterwijk please let me know what do you think. Maybe it will not work because I kept the original connection reuse part. I don't have a system to verify this.



class OpenIDCClientAuther(requests.auth.AuthBase):
class OpenIDCClientAuther(httpx.Auth):
Copy link
Owner

Choose a reason for hiding this comment

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

I would prefer it if we keep this one in place, and create a second one for httpx. This way we don't break for people that are using requests still.

@puiterwijk
Copy link
Owner

@kushaldas yeah, we should probably use the auth_flow system.
Search for If the auth flow requires more that one request, you can issue multiple yields, and obtain the response in each case... for basically an example of exactly what we will need.

Also updates the tests and applies black as formatting on the
codebase.
@kushaldas
Copy link
Author

@puiterwijk updated.

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