Expose all auth config params that are needed by client over REST
The Gerrit Client needs to know about some authentication configuration parameters of the server in order to render the UI and enable/disable certain functionality. Some of them are already provided via the /config/server/info REST endpoint. Add the other auth parameters to this REST endpoint and adapt the Gerrit Client to retrieve these parameters via REST. Remove these parameters from the config that is embedded in the host page data as they are no longer read from this data structure. Change-Id: Ia7dc5ea8654b6e63eb577dc3d9ada07ce8d90113 Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:

committed by
David Pursehouse

parent
f94d06bc25
commit
5a8c9e9649
@@ -40,7 +40,7 @@ public class MyPasswordScreen extends SettingsScreen {
|
||||
protected void onInitUI() {
|
||||
super.onInitUI();
|
||||
|
||||
String url = Gerrit.getConfig().getHttpPasswordUrl();
|
||||
String url = Gerrit.info().auth().httpPasswordUrl();
|
||||
if (url != null) {
|
||||
Anchor link = new Anchor();
|
||||
link.setText(Util.C.linkObtainPassword());
|
||||
|
Reference in New Issue
Block a user