Community
Participate
Working Groups
Support for HTTP authentication seems to exist in org.eclipse.egerrit.core. But there is no way to provide the Http Credentials from the UI.
Created attachment 263413 [details] Gerrit server dialog
(In reply to Mattias Andersson from comment #0) > Support for HTTP authentication seems to exist in org.eclipse.egerrit.core. > But there is no way to provide the Http Credentials from the UI. There is a few ways to open the preferences to add your credentials for an HTTP gerrit server. The easiest way is when you have the EGerrit dashboard view available, on the menu bar, there is a button (First one)with a pull down menu -> "Add/modify Gerrit repository.." This open the preference dialog, you can add/modify a Gerritr server and add you http credentials in the dialog
We use CAS to authenticate users on our Gerrit server. To be able to login from EGerrit I would have the users generate a HTTP Password in Gerrit and login with that, much like: curl --digest --user 'myuser:Y3C1lOGLZ2zoAyv4zw+lCb+9PoX2b9IexsSuZwQYVQ' https://my.server.org:8080/a/changes/?q=owner:self The curl-command works, but I can’t get this user and passwd to work with eGerrit. I think that I need to be able to set org.eclipse.egerrit.core/org.eclipse.egerrit.internal.core.GerritCredentials#fHttpCredentials instead or in addition to org.eclipse.egerrit.core/org.eclipse.egerrit.internal.core.GerritCredentials#fCredentials But I can’t see any way to do that in the UI.
Central Authentication Service (CAS) is not implemented in current EGerrit, we are using a user/password authentication. We deal with LDAP identification, but not following with the CAS server. We will look into it to see how we can implement this authentication.
(In reply to Jacques Bouthillier from comment #4) > We will look into it to see how we can implement this authentication. As much as I understand Jacques's enthusiasm to implement this, know this won't be implemented in the near future. Mattias, since you seem to already know where to look in the code, I would recommend you to see if you can contribute. This would guarantee faster progress.
I decided to give it a try and posted a patch on gerrit: https://git.eclipse.org/r/#/c/161460/