Skip to content
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

Merged
merged 4 commits into from
Apr 4, 2024
Merged

Feature/python wrapper sts #7620

merged 4 commits into from
Apr 4, 2024

Conversation

guy-har
Copy link
Contributor

@guy-har guy-har commented Apr 2, 2024

No description provided.

Copy link

github-actions bot commented Apr 2, 2024

🎊 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

@guy-har guy-har force-pushed the feature/python-wrapper-sts branch 2 times, most recently from e0d17c0 to 4d9db18 Compare April 2, 2024 09:24
Copy link

github-actions bot commented Apr 2, 2024

E2E Test Results - DynamoDB Local - Local Block Adapter

10 passed

@guy-har guy-har linked an issue Apr 3, 2024 that may be closed by this pull request
@guy-har guy-har requested a review from N-o-Z April 3, 2024 11:10
@guy-har guy-har marked this pull request as ready for review April 3, 2024 11:19
@guy-har guy-har added the include-changelog PR description should be included in next release changelog label Apr 3, 2024
Copy link
Member

@N-o-Z N-o-Z left a 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:
"""
Copy link
Member

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

Comment on lines 117 to 118
client.config.access_token = auth_token.token
return client
Copy link
Member

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

Suggested change
client.config.access_token = auth_token.token
return client
client.config.access_token = auth_token.token
return client

@guy-har guy-har requested a review from N-o-Z April 3, 2024 13:29
@guy-har guy-har force-pushed the feature/python-wrapper-sts branch from 7e95dcd to 1d8f1f7 Compare April 3, 2024 13:31
: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
Copy link
Member

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

Copy link
Member

@N-o-Z N-o-Z left a 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

@guy-har guy-har merged commit 727b090 into master Apr 4, 2024
35 checks passed
@guy-har guy-har deleted the feature/python-wrapper-sts branch April 4, 2024 06:26
emulatorchen pushed a commit to emulatorchen/lakeFS that referenced this pull request May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
include-changelog PR description should be included in next release changelog python-sdk-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integrate Support for Short-Lived Tokens (STS) in Remote Authentication
2 participants