-
Notifications
You must be signed in to change notification settings - Fork 360
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
Feature/python wrapper sts #7620
Conversation
🎊 PR Preview e0d17c0 has been successfully built and deployed to https://treeverse-lakeFS-preview-pr-7620.surge.sh 🕐 Build time: 0.012s 🤖 By surge-preview |
e0d17c0
to
4d9db18
Compare
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.
Thanks, just one important comment about documentation.
Also please open an issue for adding an esti test
@@ -106,6 +106,17 @@ def version(self) -> str: | |||
return self._server_conf.version | |||
|
|||
|
|||
def from_web_identity(code: str, state: str, redirect_uri: str, ttl_seconds: int = 3600, **kwargs) -> Client: | |||
""" |
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.
Our docstrings generate our documentation. Please add verbose documentation and document parameters as well
client.config.access_token = auth_token.token | ||
return client |
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.
Doesn't need to be under the exception handling
client.config.access_token = auth_token.token | |
return client | |
client.config.access_token = auth_token.token | |
return client |
7e95dcd
to
1d8f1f7
Compare
:param redirect_uri: The redirect URI used in the authentication process | ||
:param ttl_seconds: The token's time-to-live in seconds | ||
:param kwargs: Remaining arguments for the Client object | ||
:return: The authenticated Client object |
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 add :raises: according to definition in swagger
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 see final comment
No description provided.