-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean up authentication #93
base: master
Are you sure you want to change the base?
Conversation
Lordshinjo
commented
Aug 5, 2021
- Remove unused methods set_client_session, setup, handle_err/error
- Add type hints whenever possible
- Remove requests.auth import try/except in BasicAuthentication as no exception could ever happen due to it already being imported
- Add proper type hints for auth in client and constants
- Remove unused methods set_client_session, setup, handle_err/error - Add type hints whenever possible - Remove requests.auth import try/except in BasicAuthentication as no exception could ever happen due to it already being imported - Add proper type hints for auth in client and constants
I'm not sure whether it's "unused" by users. If users have below code, this commit will be breaking change. auth = trino.auth.BasicAuthentication("principal id", "password")
auth.set_client_session(...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please extract type annotations into separate commit.
As for removing set_client_session
I think it's a breaking change and it's useful to allow users to pass in their own sessions to handle authentication mechanisms that aren't implemented in the client yet.
What about
Do you mean a separate PR? |
We don't "squash" generally. Only "rebase and merge". Separate PR would be better though - we can get it merged earlier since type-annotations are not a controversial change.
|
And I can't really only extract the type annotations in a separate PR, since fixing the types requires at least fixing |