question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add Personal Access Token Authentication Support

See original GitHub issue
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Feature Request

I’m using personal access token for installing private git repositories. However, It isn’t supported by poetry.

You can see the error below.

$ poetry add git+https://MY_TOKEN:x-oauth-basic@github.com/efe/my-private-repository.git

[ValueError]
Could not parse version constraint: //MY_TOKEN:x-oauth-basic@github.com/efe/my-private-repository.git

add [-D|--dev] [--git GIT] [--path PATH] [-E|--extras EXTRAS] [--optional] [--python PYTHON] [--platform PLATFORM] [--allow-prereleases] [--dry-run] [--] <name> (<name>)...

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:19
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
denizdogancommented, May 4, 2021

So just to verify, there is still no way to use GitHub personal access tokens in Poetry dependencies? If so, that’s a pretty huge blocker for us.

4reactions
setu4993commented, Oct 1, 2020

$ poetry add git+https://MY_TOKEN:x-oauth-basic@github.com/efe/my-private-repository.git@v0.0.1

[ValueError] Invalid git url “git+https://MY_TOKEN:x-oauth-basic@github.com/efe/my-private-repository.git@v0.0.1”

Facing the same issue on 1.1.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating a personal access token - GitHub Docs
Personal access token are an alternative to using passwords for authentication to GitHub when using the GitHub API or the command line. Personal...
Read more >
Create a GitHub Personal Access Token example | TechTarget
The GitHub personal access token replaces your password. Any operation like a Git push that requires credentials prompts you for your username ...
Read more >
Message "Support for password authentication was removed ...
You need to add a PAT (Personal Access Token) instead, ... go to menu Git → pull and select authentication via Personal Access...
Read more >
How to Set Up HTTPS Personal Access Tokens for Github ...
Setting up a PAT will require you to make a new one from Github's settings, and swap your local repositories over to using...
Read more >
Introducing fine-grained personal access tokens for GitHub
Fine-grained personal access tokens offer enhanced security to developers and organization owners, to reduce the risk to your data of ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found