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

POST /session moved permanently gitlab.com #27

Closed
vindarel opened this issue Dec 1, 2015 · 1 comment
Closed

POST /session moved permanently gitlab.com #27

vindarel opened this issue Dec 1, 2015 · 1 comment

Comments

@vindarel
Copy link
Contributor

vindarel commented Dec 1, 2015

Hey,
it's official I can't get my session token. With gitlab.com I get a "301 moved permanently error".

Do you confirm the doc of the readme is working ?

the line

$ curl http://yourgitlabhost/api/v3/session/ --data-urlencode 'login=yourUserName' --data-urlencode 'password=yourPassword'

looks wrong to me because gitlab wants a POST (so without urlencode I guess). But a command like

curl -X POST http://www.gitlab.com/api/v3/session --data "login=me" --data "password=xxx"

gives the same error.

Am I doing something wrong ? Thanks !

@nlamirault
Copy link
Owner

Documentation is wrong. I will fix that.
You could try session API using the unit tests :

$ cask exec ert-runner -t session
[gitlab] Cleanup path
Set Gitlab TokenID
[gitlab] Session ID: Suu8-8SarRYyQtezr1kJ
.
Ran 1 test in 0.680 seconds

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

No branches or pull requests

2 participants