Skip to content

Added support for auth_method in push() and authenticate() #94

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

Merged
merged 2 commits into from
Aug 7, 2025

Conversation

ivanharvard
Copy link
Contributor

Closes #54.

Now you can write:

from lib50 import authenticate

with authenticate("me50", auth_method="https") as user:
    print(user.name)

or

from lib50 import authenticate

with authenticate("me50", auth_method="ssh") as user:
    print(user.name)

to force a specific authentication method, instead of trying SSH first and then trying HTTPS once SSH failed.

This argument also exists in push.

@ivanharvard ivanharvard self-assigned this Aug 5, 2025
@ivanharvard ivanharvard added the enhancement New feature or request label Aug 5, 2025
@rongxin-liu rongxin-liu merged commit 0adea4b into develop Aug 7, 2025
1 check passed
@rongxin-liu rongxin-liu deleted the feat/issue-54-add-auth-method branch August 7, 2025 03:46
@rongxin-liu rongxin-liu linked an issue Aug 7, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add an option to force using HTTPs or SSH
2 participants