You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by jb...@apache.org on 2016/01/21 10:54:32 UTC
cxf-fediz git commit: [FEDIZ-147] Disable local IDP from home realm
selection if isUseCurrentIdp() is set to false
Repository: cxf-fediz
Updated Branches:
refs/heads/master e7b2cfba2 -> 8b8b0b9ef
[FEDIZ-147] Disable local IDP from home realm selection if isUseCurrentIdp() is set to false
Project: http://git-wip-us.apache.org/repos/asf/cxf-fediz/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf-fediz/commit/8b8b0b9e
Tree: http://git-wip-us.apache.org/repos/asf/cxf-fediz/tree/8b8b0b9e
Diff: http://git-wip-us.apache.org/repos/asf/cxf-fediz/diff/8b8b0b9e
Branch: refs/heads/master
Commit: 8b8b0b9ef54f5b7d874b164cc3c7cc356ba33aed
Parents: e7b2cfb
Author: Jan Bernhardt <jb...@talend.com>
Authored: Thu Jan 21 10:28:09 2016 +0100
Committer: Jan Bernhardt <jb...@talend.com>
Committed: Thu Jan 21 10:54:07 2016 +0100
----------------------------------------------------------------------
services/idp/src/main/webapp/WEB-INF/views/idplist.jsp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/8b8b0b9e/services/idp/src/main/webapp/WEB-INF/views/idplist.jsp
----------------------------------------------------------------------
diff --git a/services/idp/src/main/webapp/WEB-INF/views/idplist.jsp b/services/idp/src/main/webapp/WEB-INF/views/idplist.jsp
index a490a12..a6aa358 100644
--- a/services/idp/src/main/webapp/WEB-INF/views/idplist.jsp
+++ b/services/idp/src/main/webapp/WEB-INF/views/idplist.jsp
@@ -16,8 +16,10 @@
<% Idp idp = (Idp)request.getAttribute("idpConfig");
List<TrustedIdp> trustedIDPs = idp.getTrustedIdps(); %>
<select name="whr">
+ <% if (idp.isUseCurrentIdp()) { %>
<option value="<%=idp.getRealm()%>" selected="selected" ><%=idp.getServiceDescription()%></option>
- <% for (TrustedIdp trustedIDP : trustedIDPs) { %>
+ <% }
+ for (TrustedIdp trustedIDP : trustedIDPs) { %>
<option value="<%=trustedIDP.getRealm()%>"><%=trustedIDP.getDescription()%></option>
<% } %>
</select>