Skip to content

Adding OAuth-style authentication using get_credential#4120

Closed
caseydialpad wants to merge 4 commits into
python-poetry:masterfrom
caseydialpad:cph/oauth
Closed

Adding OAuth-style authentication using get_credential#4120
caseydialpad wants to merge 4 commits into
python-poetry:masterfrom
caseydialpad:cph/oauth

Conversation

@caseydialpad
Copy link
Copy Markdown

@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
Copy Markdown
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
Copy Markdown
Author

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

@github-actions
Copy link
Copy Markdown

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