Skip to content

Commit

Permalink
[JIRA GEOS-8867] Extra login forms show up in the UI only if the filt…
Browse files Browse the repository at this point in the history
…er chain name matches the LoginFormInfo name
  • Loading branch information
afabiani committed Aug 14, 2018
1 parent 5cecfeb commit e1dcef8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ protected void onComponentTag(
if (securityProvider.getFilterClass() != null if (securityProvider.getFilterClass() != null
&& securityProvider && securityProvider
.getFilterClass() .getFilterClass()
.getName()
.equals(info.getFilterClass())) { .equals(info.getFilterClass())) {
filterInChain = true; filterInChain = true;
break; break;
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
*/ */
package org.geoserver.web; package org.geoserver.web;


import org.geoserver.security.GeoServerSecurityProvider;

/** /**
* Information about a login form that should be shown from the main page in the GeoServer UI. The * Information about a login form that should be shown from the main page in the GeoServer UI. The
* "order" field is based on the "name". * "order" field is based on the "name".
Expand All @@ -15,7 +17,7 @@ public class LoginFormInfo extends ComponentInfo<GeoServerBasePage>
implements Comparable<LoginFormInfo> { implements Comparable<LoginFormInfo> {
String name; String name;
String icon = ""; String icon = "";
private String filterClass; private Class<GeoServerSecurityProvider> filterClass;
private String include; private String include;
private String loginPath; private String loginPath;


Expand Down Expand Up @@ -53,7 +55,7 @@ public void setIcon(String icon) {
* *
* @return the filterClass * @return the filterClass
*/ */
public String getFilterClass() { public Class<GeoServerSecurityProvider> getFilterClass() {
return filterClass; return filterClass;
} }


Expand All @@ -62,7 +64,7 @@ public String getFilterClass() {
* *
* @param filterClass the filterClass to set * @param filterClass the filterClass to set
*/ */
public void setFilterClass(String filterClass) { public void setFilterClass(Class<GeoServerSecurityProvider> filterClass) {
this.filterClass = filterClass; this.filterClass = filterClass;
} }


Expand Down

0 comments on commit e1dcef8

Please sign in to comment.