emacs-gitlab icon indicating copy to clipboard operation
emacs-gitlab copied to clipboard

Is login by token supported?

Open benquike opened this issue 9 years ago • 8 comments

As the subject said

benquike avatar Sep 22 '16 16:09 benquike

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

nlamirault avatar Sep 22 '16 17:09 nlamirault

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

Authentication -> Personal Access Tokens

benquike avatar Sep 22 '16 22:09 benquike

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

benquike avatar Sep 22 '16 22:09 benquike

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

To1ne avatar Jan 23 '17 14:01 To1ne

@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.

tjaartvdwalt avatar Feb 17 '17 18:02 tjaartvdwalt

@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.

To1ne avatar Feb 21 '17 08:02 To1ne

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

tasmo avatar Nov 13 '17 10:11 tasmo

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

norpol avatar Aug 26 '18 12:08 norpol