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

Is login by token supported? #43

Open
benquike opened this issue Sep 22, 2016 · 8 comments
Open

Is login by token supported? #43

benquike opened this issue Sep 22, 2016 · 8 comments
Labels

Comments

@benquike
Copy link

As the subject said

@nlamirault
Copy link
Owner

I don't think so.
Do you have a link to the API ? example ?

@benquike
Copy link
Author

https://docs.gitlab.com/ce/api/

Authentication -> Personal Access Tokens

@benquike
Copy link
Author

BTW, I have tried using it, and found that this tool is very primitive.
Do you have some plans?

@To1ne
Copy link

To1ne commented Jan 23, 2017

@benquike normally if you set gitlab-token-id, this should work. But unfortunately, I didn't get it working...

@tjaartvdwalt
Copy link

tjaartvdwalt commented Feb 17, 2017

@To1ne, I have also not been able to set the gitlab-token-id.

After doing some digging, it seems that the POST /sessions endpoint has been disabled since 8.11, if you have 2-factor authentication enabled. See: https://docs.gitlab.com/ce/api/session.html

As far as I can see, using POST /sessions is the only way to authenticate using this plugin.

@To1ne
Copy link

To1ne commented Feb 21, 2017

@tjaartvdwalt It should work if you create a Personal Access Token and (setq gitlab-token-id "my-token"). You see, it is used here. But I admit, it isn't working very well.

@tasmo
Copy link

tasmo commented Nov 13, 2017

@To1ne Does not work for me either. I get an HTML 401 (Unauthorized) response.

@norpol
Copy link

norpol commented Aug 26, 2018

Just successfully authenticated with this instructions on https://gitlab.com. I don't have 2-factor authentication enabled though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants