Skip to content

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

3 participants