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

Adding OAuth-style authentication using get_credential #4120

Closed
wants to merge 4 commits into from

Conversation

caseydialpad
Copy link

@caseydialpad caseydialpad commented May 31, 2021

Pull Request Check List

This PR is to extend support for keyrings by using the get_credential functionality of keyring to allow OAuth-style authentication. If username AND password is absent, the keyring will be queried for OAuth-style credentials.

This change has been tested with Google Cloud's Artifact Registry. This change should also work for other private PyPI providers who use OAuth and a custom keyring backend to authenticate users.

Resolves: No existing ticket number.

  • Added tests for changed code.
  • Updated documentation for changed code.

@caseydialpad caseydialpad changed the title Cph/oauth Adding OAuth-style authentication using get_credential May 31, 2021
@caseydialpad
Copy link
Author

It looks like there is a similar PR at #4086. I'll leave this open for now - it may be valuable to compare two different techniques although the #4086 seems cover a wider array of authentication techniques using keyrings.

@caseydialpad
Copy link
Author

Closing due to existence of superior solution at PR mentioned above.

Copy link

github-actions bot commented Mar 1, 2024

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant