← 返回首页
Use PRIVATE-TOKEN header for passing the auth token by dekimsey · Pull Request #3 · python-gitlab/python-gitlab · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Use PRIVATE-TOKEN header for passing the auth token#3

Merged
gpocentek merged 1 commit into
python-gitlab:masterfrom
dekimsey:header-private-token
Aug 27, 2013
Merged

Use PRIVATE-TOKEN header for passing the auth token#3
gpocentek merged 1 commit into
python-gitlab:masterfrom
dekimsey:header-private-token

Conversation

Copy link
Copy Markdown
Contributor

dekimsey commented Jul 2, 2013

This moves the private_token field from out of the request url and into the request header.

Copy link
Copy Markdown
Contributor

Hi,

I'd like to merge this change, but I'm afraid it would break gitlab 4.x compatibility. The use of the header doesn't seem possible for those versions (according to the doc, I didn't look at the code).

On the other hand, I have absolutely no idea if python-gitlab is used with gitlab 4.x...

gpocentek merged commit d39c471 into python-gitlab:master Aug 27, 2013
Copy link
Copy Markdown
Contributor

gitlab v6 is out, v4 is getting old...

Thanks for the patch.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Footer

© 2026 GitHub, Inc.