You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by rw...@apache.org on 2010/02/07 06:07:17 UTC
svn commit: r907379 - in
/portals/jetspeed-2/applications/j2-admin/trunk/src/main:
java/org/apache/jetspeed/portlets/openid/
resources/org/apache/jetspeed/portlets/security/resources/ webapp/WEB-INF/
webapp/WEB-INF/security/login/
Author: rwatler
Date: Sun Feb 7 05:07:15 2010
New Revision: 907379
URL: http://svn.apache.org/viewvc?rev=907379&view=rev
Log:
JS2-1101: OpenID Login Support
Added:
portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/openid/
portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/openid/OpenIDLoginPortlet.java
portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources.properties
portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_ca.properties
portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_de.properties
portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_el.properties
portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_en.properties
portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_es.properties
portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_hu.properties
portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_it.properties
portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_ja.properties
portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_ko.properties
portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_nl.properties
portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_pl.properties
portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_ru.properties
portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_ua.properties
portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_zh.properties
portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_zh_TW.properties
portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/security/login/openid-login-prefs.jsp
portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/security/login/openid-login.jsp
Modified:
portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/jetspeed-portlet.xml
portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/portlet.xml
Added: portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/openid/OpenIDLoginPortlet.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/openid/OpenIDLoginPortlet.java?rev=907379&view=auto
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/openid/OpenIDLoginPortlet.java (added)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/openid/OpenIDLoginPortlet.java Sun Feb 7 05:07:15 2010
@@ -0,0 +1,273 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.jetspeed.portlets.openid;
+
+import java.io.IOException;
+
+import javax.portlet.ActionRequest;
+import javax.portlet.ActionResponse;
+import javax.portlet.PortletConfig;
+import javax.portlet.PortletException;
+import javax.portlet.PortletMode;
+import javax.portlet.PortletPreferences;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+import javax.portlet.WindowState;
+
+import org.apache.jetspeed.JetspeedActions;
+import org.apache.jetspeed.PortalReservedParameters;
+import org.apache.jetspeed.openid.OpenIDConstants;
+import org.apache.jetspeed.openid.OpenIDRegistrationConfiguration;
+import org.apache.jetspeed.request.RequestContext;
+import org.apache.portals.bridges.common.GenericServletPortlet;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * Portlet to hold new user registration preferences
+ * for OpenID login.
+ *
+ * @author <a href="mailto:rwatler@apache.org">Randy Watler</a>
+ * @version $Id$
+ */
+public class OpenIDLoginPortlet extends GenericServletPortlet
+{
+ private static final Logger log = LoggerFactory.getLogger(OpenIDLoginPortlet.class);
+
+ public static final String ENABLE_REGISTRATION_CONFIG_PREF_NAME = "enableRegistrationConfig";
+ public static final String ENABLE_REGISTRATION_PREF_NAME = "enableRegistration";
+ public static final String REGISTRATION_USER_TEMPLATE_PREF_NAME = "newUserTemplateDirectory";
+ public static final String REGISTRATION_SUBSITE_ROOT_PREF_NAME = "subsiteRootFolder";
+ public static final String REGISTRATION_ROLES_PREF_NAME = "roles";
+ public static final String REGISTRATION_GROUPS_PREF_NAME = "groups";
+ public static final String REGISTRATION_PROFILER_RULE_NAMES_PREF_NAME = "rulesNames";
+ public static final String REGISTRATION_PROFILER_RULE_VALUES_PREF_NAME = "rulesValues";
+
+ public static final String SAVE_ACTION_PARAM_NAME = "save";
+
+ private static final String [] REGISTRATION_PREF_NAMES = new String[]{ENABLE_REGISTRATION_CONFIG_PREF_NAME,
+ ENABLE_REGISTRATION_PREF_NAME,
+ REGISTRATION_USER_TEMPLATE_PREF_NAME,
+ REGISTRATION_SUBSITE_ROOT_PREF_NAME,
+ REGISTRATION_ROLES_PREF_NAME,
+ REGISTRATION_GROUPS_PREF_NAME,
+ REGISTRATION_PROFILER_RULE_NAMES_PREF_NAME,
+ REGISTRATION_PROFILER_RULE_VALUES_PREF_NAME};
+ private static final String OPEN_ID_RELAYING_PARTY_SERVLET_MAPPING = "/openid";
+
+ OpenIDRegistrationConfiguration initRegistrationConfiguration;
+
+ /* (non-Javadoc)
+ * @see org.apache.portals.bridges.common.GenericServletPortlet#init(javax.portlet.PortletConfig)
+ */
+ public void init(PortletConfig config) throws PortletException
+ {
+ super.init(config);
+
+ // registration configuration parameters
+ if (Boolean.parseBoolean(config.getInitParameter(OpenIDConstants.ENABLE_REGISTRATION_CONFIG_INIT_PARAM_NAME)))
+ {
+ initRegistrationConfiguration = new OpenIDRegistrationConfiguration();
+ initRegistrationConfiguration.setEnableRegistration(config.getInitParameter(OpenIDConstants.ENABLE_REGISTRATION_INIT_PARAM_NAME));
+ initRegistrationConfiguration.setUserTemplateDirectory(config.getInitParameter(OpenIDConstants.REGISTRATION_USER_TEMPLATE_INIT_PARAM_NAME));
+ initRegistrationConfiguration.setSubsiteRootFolder(config.getInitParameter(OpenIDConstants.REGISTRATION_SUBSITE_ROOT_INIT_PARAM_NAME));
+ initRegistrationConfiguration.setRoles(config.getInitParameter(OpenIDConstants.REGISTRATION_ROLES_INIT_PARAM_NAME));
+ initRegistrationConfiguration.setGroups(config.getInitParameter(OpenIDConstants.REGISTRATION_GROUPS_INIT_PARAM_NAME));
+ initRegistrationConfiguration.setProfilerRules(config.getInitParameter(OpenIDConstants.REGISTRATION_PROFILER_RULE_NAMES_INIT_PARAM_NAME), config.getInitParameter(OpenIDConstants.REGISTRATION_PROFILER_RULE_VALUES_INIT_PARAM_NAME));
+ }
+ }
+
+ /* (non-Javadoc)
+ * @see javax.portlet.GenericPortlet#destroy()
+ */
+ public void destroy()
+ {
+ initRegistrationConfiguration = null;
+ super.destroy();
+ }
+
+ /* (non-Javadoc)
+ * @see javax.portlet.GenericPortlet#doDispatch(javax.portlet.RenderRequest, javax.portlet.RenderResponse)
+ */
+ protected void doDispatch(RenderRequest request, RenderResponse response) throws PortletException, IOException
+ {
+ // support edit defaults mode
+ if (!request.getWindowState().equals(WindowState.MINIMIZED))
+ {
+ PortletMode curMode = request.getPortletMode();
+ if (JetspeedActions.EDIT_DEFAULTS_MODE.equals(curMode))
+ {
+ doEdit(request, response);
+ }
+ else
+ {
+ super.doDispatch(request, response);
+ }
+ }
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.portals.bridges.common.GenericServletPortlet#doView(javax.portlet.RenderRequest, javax.portlet.RenderResponse)
+ */
+ public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException
+ {
+ // access login errors in session from OpenIDRelayingPartyServlet
+ RequestContext requestContext = (RequestContext)request.getAttribute(PortalReservedParameters.REQUEST_CONTEXT_ATTRIBUTE);
+ String errorCode = (String)requestContext.getSessionAttribute(OpenIDConstants.OPEN_ID_ERROR);
+ if (errorCode != null)
+ {
+ request.setAttribute(OpenIDConstants.OPEN_ID_ERROR, errorCode);
+ }
+
+ // render portlet content
+ response.setContentType("text/html");
+ super.doView(request, response);
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.portals.bridges.common.GenericServletPortlet#doEdit(javax.portlet.RenderRequest, javax.portlet.RenderResponse)
+ */
+ public void doEdit(RenderRequest request, RenderResponse response) throws PortletException, IOException
+ {
+ // access registration preferences to edit
+ PortletPreferences prefs = request.getPreferences();
+ for (String prefName : REGISTRATION_PREF_NAMES)
+ {
+ String prefValue = prefs.getValue(prefName, null);
+ if (prefValue != null)
+ {
+ request.setAttribute(prefName, prefValue);
+ }
+ }
+
+ // render portlet content
+ response.setContentType("text/html");
+ super.doEdit(request, response);
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.portals.bridges.common.GenericServletPortlet#processAction(javax.portlet.ActionRequest, javax.portlet.ActionResponse)
+ */
+ public void processAction(ActionRequest actionRequest, ActionResponse actionResponse) throws PortletException, IOException
+ {
+ PortletMode curMode = actionRequest.getPortletMode();
+ if (curMode == PortletMode.VIEW)
+ {
+ String action = actionRequest.getParameter(OpenIDConstants.OPEN_ID_REQUEST);
+ if (action != null)
+ {
+ // redirect action to OpenIDRelayingPartyServlet
+ RequestContext requestContext = (RequestContext)actionRequest.getAttribute(PortalReservedParameters.REQUEST_CONTEXT_ATTRIBUTE);
+ String servletRedirect = requestContext.getRequest().getContextPath()+OPEN_ID_RELAYING_PARTY_SERVLET_MAPPING+"/"+action+"?"+OpenIDConstants.OPEN_ID_RETURN+"="+requestContext.getPortalURL().getBasePath();
+
+ // perform action
+ if (action.equals(OpenIDConstants.OPEN_ID_LOGIN_REQUEST))
+ {
+ // access new user registration init parameters and preferences
+ // and save in session for consumption by the OpenIDRelayingPartyServlet
+ String logConfiguration = "none";
+ PortletPreferences prefs = actionRequest.getPreferences();
+ if (Boolean.parseBoolean(prefs.getValue(ENABLE_REGISTRATION_CONFIG_PREF_NAME, null)))
+ {
+ OpenIDRegistrationConfiguration registrationConfiguration = new OpenIDRegistrationConfiguration();
+ registrationConfiguration.setEnableRegistration(prefs.getValue(ENABLE_REGISTRATION_PREF_NAME, null));
+ registrationConfiguration.setUserTemplateDirectory(prefs.getValue(REGISTRATION_USER_TEMPLATE_PREF_NAME, null));
+ registrationConfiguration.setSubsiteRootFolder(prefs.getValue(REGISTRATION_SUBSITE_ROOT_PREF_NAME, null));
+ registrationConfiguration.setRoles(prefs.getValue(REGISTRATION_ROLES_PREF_NAME, null));
+ registrationConfiguration.setGroups(prefs.getValue(REGISTRATION_GROUPS_PREF_NAME, null));
+ registrationConfiguration.setProfilerRules(prefs.getValue(REGISTRATION_PROFILER_RULE_NAMES_PREF_NAME, null), prefs.getValue(REGISTRATION_PROFILER_RULE_VALUES_PREF_NAME, null));
+ registrationConfiguration.merge(initRegistrationConfiguration);
+ requestContext.setSessionAttribute(OpenIDConstants.OPEN_ID_REGISTRATION_CONFIGURATION, registrationConfiguration);
+ logConfiguration = "preferences";
+ }
+ else if (initRegistrationConfiguration != null)
+ {
+ requestContext.setSessionAttribute(OpenIDConstants.OPEN_ID_REGISTRATION_CONFIGURATION, initRegistrationConfiguration);
+ logConfiguration = "init params";
+ }
+
+ // login redirect to OpenIDRelayingPartyServlet
+ String discoveryParam = actionRequest.getParameter(OpenIDConstants.OPEN_ID_DISCOVERY);
+ servletRedirect += (((discoveryParam != null) && (discoveryParam.length() > 0)) ? "&"+OpenIDConstants.OPEN_ID_DISCOVERY+"="+discoveryParam : "");
+ String providerParam = actionRequest.getParameter(OpenIDConstants.OPEN_ID_PROVIDER);
+ servletRedirect += (((providerParam != null) && (providerParam.length() > 0)) ? "&"+OpenIDConstants.OPEN_ID_PROVIDER+"="+providerParam : "");
+ actionResponse.sendRedirect(servletRedirect);
+
+ // log user login
+ if (log.isDebugEnabled())
+ {
+ log.debug("OpenID login: discovery: "+discoveryParam+", provider: "+providerParam+", configuration: "+logConfiguration);
+ }
+ }
+ else if (action.equals(OpenIDConstants.OPEN_ID_LOGOUT_REQUEST))
+ {
+ // logout redirect to OpenIDRelayingPartyServlet
+ actionResponse.sendRedirect(servletRedirect);
+
+ // log user logout
+ if (log.isDebugEnabled())
+ {
+ log.debug("OpenID logout");
+ }
+ }
+ }
+ }
+ else if (curMode.equals(JetspeedActions.EDIT_DEFAULTS_MODE))
+ {
+ // default preferences edit mode
+ if (actionRequest.getParameter(SAVE_ACTION_PARAM_NAME) != null)
+ {
+ // save preferences
+ PortletPreferences prefs = actionRequest.getPreferences();
+ boolean storePrefs = false;
+ for (String prefName : REGISTRATION_PREF_NAMES)
+ {
+ String prefValue = actionRequest.getParameter(prefName);
+ if ((prefValue != null) && (prefValue.length() > 0))
+ {
+ if (!prefValue.equals(prefs.getValue(prefName, null)))
+ {
+ prefs.setValue(prefName, prefValue);
+ storePrefs = true;
+ }
+ }
+ else if (prefs.getValue(prefName, null) != null)
+ {
+ prefs.setValue(prefName, null);
+ storePrefs = true;
+ }
+ }
+
+ // store preferences
+ if (storePrefs)
+ {
+ prefs.store();
+ }
+
+ // log store preferences
+ if (log.isDebugEnabled())
+ {
+ log.debug("OpenID preferences saved: stored: "+storePrefs);
+ }
+ }
+
+ // switch to view mode when done
+ actionResponse.setPortletMode(PortletMode.VIEW);
+ }
+ }
+}
Added: portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources.properties
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources.properties?rev=907379&view=auto
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources.properties (added)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources.properties Sun Feb 7 05:07:15 2010
@@ -0,0 +1,33 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# $Id$
+#
+
+# portlet info
+javax.portlet.title=OpenID Login Portlet
+javax.portlet.short-title=OpenID Login Portlet
+
+# openid-login.jsp
+openid-login.label.Login=Login
+openid-login.label.Welcome=Welcome {0}
+openid-login.label.Logout=Logout
+openid-login.label.OpenID=OpenID
+openid-login.label.ProviderLogin={0} Login
+openid-login.label.ErrorNoProvider=Valid OpenID provider or URL not specified.
+openid-login.label.ErrorCannotAuthenticate=Cannot authenticate with OpenID provider.
+openid-login.label.ErrorNotAuthenticated=OpenID provider did not authenticate login.
+openid-login.label.ErrorNoPortaUser=Portal user not registered for login.
+openid-login.label.ErrorCannotLogin=Cannot login registered portal user.
Added: portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_ca.properties
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_ca.properties?rev=907379&view=auto
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_ca.properties (added)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_ca.properties Sun Feb 7 05:07:15 2010
@@ -0,0 +1,35 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# $Id: LoginResources_en.properties,v 1.4 2005/04/24 12:41:43 ate Exp $
+#
+# LOCALIZATION MAINTAINER:
+# Jetspeed Development Team
+
+# portlet info
+javax.portlet.title=OpenID Portlet d'identificaci\u00f3
+javax.portlet.short-title=OpenID Portlet d'identificaci\u00f3
+
+# openid-login.jsp
+openid-login.label.Login=Entrar
+openid-login.label.Welcome=Benvingut {0}
+openid-login.label.Logout=Eixir
+openid-login.label.OpenID=OpenID
+openid-login.label.ProviderLogin={0} Entrar
+openid-login.label.ErrorNoProvider=Valid OpenID provider or URL not specified.
+openid-login.label.ErrorCannotAuthenticate=Cannot authenticate with OpenID provider.
+openid-login.label.ErrorNotAuthenticated=OpenID provider did not authenticate login.
+openid-login.label.ErrorNoPortaUser=Portal user not registered for login.
+openid-login.label.ErrorCannotLogin=Cannot login registered portal user.
Added: portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_de.properties
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_de.properties?rev=907379&view=auto
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_de.properties (added)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_de.properties Sun Feb 7 05:07:15 2010
@@ -0,0 +1,35 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# $Id: j2-german_translations.txt,v 1.3 2005/09/25 19:02:56 thorsten Exp $
+#
+# LOCALIZATION MAINTAINER:
+# Thorsten Berger <je...@thorsten-berger.net>
+
+# portlet info
+javax.portlet.title=OpenID Login-Portlet
+javax.portlet.short-title=OpenID Login-Portlet
+
+# openid-login.jsp
+openid-login.label.Login=Login
+openid-login.label.Welcome=Willkommen {0}
+openid-login.label.Logout=Logout
+openid-login.label.OpenID=OpenID
+openid-login.label.ProviderLogin={0} Login
+openid-login.label.ErrorNoProvider=Valid OpenID provider or URL not specified.
+openid-login.label.ErrorCannotAuthenticate=Cannot authenticate with OpenID provider.
+openid-login.label.ErrorNotAuthenticated=OpenID provider did not authenticate login.
+openid-login.label.ErrorNoPortaUser=Portal user not registered for login.
+openid-login.label.ErrorCannotLogin=Cannot login registered portal user.
Added: portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_el.properties
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_el.properties?rev=907379&view=auto
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_el.properties (added)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_el.properties Sun Feb 7 05:07:15 2010
@@ -0,0 +1,35 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# $Id: LoginResources_en.properties 348264 2005-11-22 22:06:45Z taylor $
+# native2ascii LoginResources_el.properties.orig LoginResources_el.properties
+# LOCALIZATION MAINTAINER:
+# Jetspeed Development Team
+
+# portlet info
+javax.portlet.title=OpenID \u03a3\u03cd\u03bd\u03b4\u03b5\u03c3\u03b7 \u03a7\u03c1\u03ae\u03c3\u03c4\u03b7
+javax.portlet.short-title=OpenID \u03a3\u03cd\u03bd\u03b4\u03b5\u03c3\u03b7 \u03a7\u03c1\u03ae\u03c3\u03c4\u03b7
+
+# openid-login.jsp
+openid-login.label.Login=\u03a3\u03cd\u03bd\u03b4\u03b5\u03c3\u03b7
+openid-login.label.Welcome=\u039a\u03b1\u03bb\u03c9\u03c3\u03ae\u03c1\u03b8\u03b1\u03c4\u03b5! {0}
+openid-login.label.Logout=\u0391\u03c0\u03bf\u03c3\u03cd\u03bd\u03b4\u03b5\u03c3\u03b7
+openid-login.label.OpenID=OpenID
+openid-login.label.ProviderLogin={0} \u03a3\u03cd\u03bd\u03b4\u03b5\u03c3\u03b7
+openid-login.label.ErrorNoProvider=Valid OpenID provider or URL not specified.
+openid-login.label.ErrorCannotAuthenticate=Cannot authenticate with OpenID provider.
+openid-login.label.ErrorNotAuthenticated=OpenID provider did not authenticate login.
+openid-login.label.ErrorNoPortaUser=Portal user not registered for login.
+openid-login.label.ErrorCannotLogin=Cannot login registered portal user.
Added: portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_en.properties
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_en.properties?rev=907379&view=auto
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_en.properties (added)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_en.properties Sun Feb 7 05:07:15 2010
@@ -0,0 +1,35 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# $Id: LoginResources_en.properties 348264 2005-11-22 22:06:45Z taylor $
+#
+# LOCALIZATION MAINTAINER:
+# Jetspeed Development Team
+
+# portlet info
+javax.portlet.title=OpenID Login Portlet
+javax.portlet.short-title=OpenID Login Portlet
+
+# openid-login.jsp
+openid-login.label.Login=Login
+openid-login.label.Welcome=Welcome {0}
+openid-login.label.Logout=Logout
+openid-login.label.OpenID=OpenID
+openid-login.label.ProviderLogin={0} Login
+openid-login.label.ErrorNoProvider=Valid OpenID provider or URL not specified.
+openid-login.label.ErrorCannotAuthenticate=Cannot authenticate with OpenID provider.
+openid-login.label.ErrorNotAuthenticated=OpenID provider did not authenticate login.
+openid-login.label.ErrorNoPortaUser=Portal user not registered for login.
+openid-login.label.ErrorCannotLogin=Cannot login registered portal user.
Added: portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_es.properties
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_es.properties?rev=907379&view=auto
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_es.properties (added)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_es.properties Sun Feb 7 05:07:15 2010
@@ -0,0 +1,35 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# $Id: LoginResources_en.properties,v 1.4 2005/04/24 12:41:43 ate Exp $
+#
+# LOCALIZATION MAINTAINER:
+# Jetspeed Development Team
+
+# portlet info
+javax.portlet.title=OpenID Portlet de identificaci\u00f3n
+javax.portlet.short-title=OpenID Portlet de identificaci\u00f3n
+
+# openid-login.jsp
+openid-login.label.Login=Entrar
+openid-login.label.Welcome=Bienvenido {0}
+openid-login.label.Logout=Salir
+openid-login.label.OpenID=OpenID
+openid-login.label.ProviderLogin={0} Entrar
+openid-login.label.ErrorNoProvider=Valid OpenID provider or URL not specified.
+openid-login.label.ErrorCannotAuthenticate=Cannot authenticate with OpenID provider.
+openid-login.label.ErrorNotAuthenticated=OpenID provider did not authenticate login.
+openid-login.label.ErrorNoPortaUser=Portal user not registered for login.
+openid-login.label.ErrorCannotLogin=Cannot login registered portal user.
Added: portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_hu.properties
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_hu.properties?rev=907379&view=auto
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_hu.properties (added)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_hu.properties Sun Feb 7 05:07:15 2010
@@ -0,0 +1,35 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# $Id: LoginResources_en.properties 188531 2005-04-24 12:41:43Z ate $
+#
+# LOCALIZATION MAINTAINER:
+# Jetspeed Development Team
+
+# portlet info
+javax.portlet.title=OpenID Bejelentkez\u00e9s Portlet
+javax.portlet.short-title=OpenID Bejelnetkez\u00e9s Portlet
+
+# openid-login.jsp
+openid-login.label.Login=Bejelentkez\u00e9s
+openid-login.label.Welcome=K\u00f6sz\u00f6nt\u00f6m {0}
+openid-login.label.Logout=Kijelentkez\u00e9s
+openid-login.label.OpenID=OpenID
+openid-login.label.ProviderLogin={0} Bejelentkez\u00e9s
+openid-login.label.ErrorNoProvider=Valid OpenID provider or URL not specified.
+openid-login.label.ErrorCannotAuthenticate=Cannot authenticate with OpenID provider.
+openid-login.label.ErrorNotAuthenticated=OpenID provider did not authenticate login.
+openid-login.label.ErrorNoPortaUser=Portal user not registered for login.
+openid-login.label.ErrorCannotLogin=Cannot login registered portal user.
Added: portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_it.properties
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_it.properties?rev=907379&view=auto
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_it.properties (added)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_it.properties Sun Feb 7 05:07:15 2010
@@ -0,0 +1,34 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# Italian version by Dessì Massimiliano <a href="desmax74@yahoo.it.it">desmax74@yahoo.it</a>.
+# Vers 1.0 jetspeed 2.0 08/10/2004
+# $Id: LoginResources_it.properties 348264 2005-11-22 22:06:45Z taylor $
+
+# portlet info
+javax.portlet.title=OpenID Login Portlet
+javax.portlet.short-title=OpenID Login Portlet
+
+# openid-login.jsp
+openid-login.label.Login=Login
+openid-login.label.Welcome=Benvenuto {0}
+openid-login.label.Logout=Logout
+openid-login.label.OpenID=OpenID
+openid-login.label.ProviderLogin={0} Login
+openid-login.label.ErrorNoProvider=Valid OpenID provider or URL not specified.
+openid-login.label.ErrorCannotAuthenticate=Cannot authenticate with OpenID provider.
+openid-login.label.ErrorNotAuthenticated=OpenID provider did not authenticate login.
+openid-login.label.ErrorNoPortaUser=Portal user not registered for login.
+openid-login.label.ErrorCannotLogin=Cannot login registered portal user.
Added: portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_ja.properties
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_ja.properties?rev=907379&view=auto
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_ja.properties (added)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_ja.properties Sun Feb 7 05:07:15 2010
@@ -0,0 +1,35 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# $Id: LoginResources_ja.properties 348264 2005-11-22 22:06:45Z taylor $
+#
+# LOCALIZATION MAINTAINER:
+# Shinsuke Sugaya <sh...@yahoo.co.jp>
+
+# portlet info
+javax.portlet.title=OpenID\u30ed\u30b0\u30a4\u30f3
+javax.portlet.short-title=OpenID\u30ed\u30b0\u30a4\u30f3\u30dd\u30fc\u30c8\u30ec\u30c3\u30c8
+
+# openid-login.jsp
+openid-login.label.Login=\u30ed\u30b0\u30a4\u30f3
+openid-login.label.Welcome=\u3088\u3046\u3053\u305d {0}
+openid-login.label.Logout=\u30ed\u30b0\u30a2\u30a6\u30c8
+openid-login.label.OpenID=OpenID
+openid-login.label.ProviderLogin={0}\u30ed\u30b0\u30a4\u30f3
+openid-login.label.ErrorNoProvider=Valid OpenID provider or URL not specified.
+openid-login.label.ErrorCannotAuthenticate=Cannot authenticate with OpenID provider.
+openid-login.label.ErrorNotAuthenticated=OpenID provider did not authenticate login.
+openid-login.label.ErrorNoPortaUser=Portal user not registered for login.
+openid-login.label.ErrorCannotLogin=Cannot login registered portal user.
Added: portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_ko.properties
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_ko.properties?rev=907379&view=auto
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_ko.properties (added)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_ko.properties Sun Feb 7 05:07:15 2010
@@ -0,0 +1,35 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# $Id: LoginResources_en.properties 348264 2005-11-22 22:06:45Z taylor $
+#
+# LOCALIZATION MAINTAINER:
+# Jetspeed Development Team
+
+# portlet info
+javax.portlet.title=OpenID \ub85c\uadf8\uc778 \ud3ec\ud2c0\ub9bf
+javax.portlet.short-title=OpenID \ub85c\uadf8\uc778 \ud3ec\ud2c0\ub9bf
+
+# openid-login.jsp
+openid-login.label.Login=\ub85c\uadf8\uc778
+openid-login.label.Welcome={0} \ub2d8, \ud658\uc601\ud569\ub2c8\ub2e4.
+openid-login.label.Logout=\ub85c\uadf8\uc544\uc6c3
+openid-login.label.OpenID=OpenID
+openid-login.label.ProviderLogin={0} \ub85c\uadf8\uc778
+openid-login.label.ErrorNoProvider=Valid OpenID provider or URL not specified.
+openid-login.label.ErrorCannotAuthenticate=Cannot authenticate with OpenID provider.
+openid-login.label.ErrorNotAuthenticated=OpenID provider did not authenticate login.
+openid-login.label.ErrorNoPortaUser=Portal user not registered for login.
+openid-login.label.ErrorCannotLogin=Cannot login registered portal user.
Added: portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_nl.properties
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_nl.properties?rev=907379&view=auto
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_nl.properties (added)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_nl.properties Sun Feb 7 05:07:15 2010
@@ -0,0 +1,35 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# $Id: LoginResources_nl.properties 348264 2005-11-22 22:06:45Z taylor $
+#
+# LOCALIZATION MAINTAINER:
+# Jetspeed Development Team
+
+# portlet info
+javax.portlet.title=OpenID Login Portlet
+javax.portlet.short-title=OpenID Login Portlet
+
+# openid-login.jsp
+openid-login.label.Login=Login
+openid-login.label.Welcome=Welkom {0}
+openid-login.label.Logout=Uitloggen
+openid-login.label.OpenID=OpenID
+openid-login.label.ProviderLogin={0} Login
+openid-login.label.ErrorNoProvider=Valid OpenID provider or URL not specified.
+openid-login.label.ErrorCannotAuthenticate=Cannot authenticate with OpenID provider.
+openid-login.label.ErrorNotAuthenticated=OpenID provider did not authenticate login.
+openid-login.label.ErrorNoPortaUser=Portal user not registered for login.
+openid-login.label.ErrorCannotLogin=Cannot login registered portal user.
Added: portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_pl.properties
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_pl.properties?rev=907379&view=auto
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_pl.properties (added)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_pl.properties Sun Feb 7 05:07:15 2010
@@ -0,0 +1,33 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# $Id: LoginResources_pl.properties, v. 1.0 2005-08-18 $
+# jacek.wislicki@gmail.com
+
+# portlet info
+javax.portlet.title=OpenID Logowanie u\u017Cytkownika
+javax.portlet.short-title=OpenID Logowanie
+
+# openid-login.jsp
+openid-login.label.Login=Zaloguj
+openid-login.label.Welcome=Witamy {0}
+openid-login.label.Logout=Wyloguj
+openid-login.label.OpenID=OpenID
+openid-login.label.ProviderLogin={0} Zaloguj
+openid-login.label.ErrorNoProvider=Valid OpenID provider or URL not specified.
+openid-login.label.ErrorCannotAuthenticate=Cannot authenticate with OpenID provider.
+openid-login.label.ErrorNotAuthenticated=OpenID provider did not authenticate login.
+openid-login.label.ErrorNoPortaUser=Portal user not registered for login.
+openid-login.label.ErrorCannotLogin=Cannot login registered portal user.
Added: portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_ru.properties
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_ru.properties?rev=907379&view=auto
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_ru.properties (added)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_ru.properties Sun Feb 7 05:07:15 2010
@@ -0,0 +1,33 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# LOCALIZATION MAINTAINER:
+# Denis Burlaka <bu...@yandex.ru>
+
+# portlet info
+javax.portlet.title=OpenID\u041f\u043e\u0440\u0442\u043b\u0435\u0442 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438
+javax.portlet.short-title=OpenID\u041f\u043e\u0440\u0442\u043b\u0435\u0442 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438
+
+# openid-login.jsp
+openid-login.label.Login=\u0412\u0445\u043e\u0434
+openid-login.label.Welcome=\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435 {0}
+openid-login.label.Logout=\u0412\u044b\u0445\u043e\u0434
+openid-login.label.OpenID=OpenID
+openid-login.label.ProviderLogin={0} \u0412\u0445\u043e\u0434
+openid-login.label.ErrorNoProvider=Valid OpenID provider or URL not specified.
+openid-login.label.ErrorCannotAuthenticate=Cannot authenticate with OpenID provider.
+openid-login.label.ErrorNotAuthenticated=OpenID provider did not authenticate login.
+openid-login.label.ErrorNoPortaUser=Portal user not registered for login.
+openid-login.label.ErrorCannotLogin=Cannot login registered portal user.
Added: portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_ua.properties
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_ua.properties?rev=907379&view=auto
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_ua.properties (added)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_ua.properties Sun Feb 7 05:07:15 2010
@@ -0,0 +1,35 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# $Id: LoginResources_en.properties 348264 2005-11-22 22:06:45Z taylor $
+#
+# LOCALIZATION MAINTAINER:
+# Jetspeed Development Team
+
+# portlet info
+javax.portlet.title=OpenID \u041f\u043e\u0440\u0442\u043b\u0435\u0442 \u0440\u0435\u0454\u0441\u0442\u0440\u0430\u0446\u0456\u0457
+javax.portlet.short-title=OpenID \u041f\u043e\u0440\u0442\u043b\u0435\u0442 \u0440\u0435\u0454\u0441\u0442\u0440\u0430\u0446\u0456\u0457
+
+# openid-login.jsp
+openid-login.label.Login=\u0412\u0445\u0456\u0434
+openid-login.label.Welcome=\u041b\u0430\u0441\u043a\u0430\u0432\u043e \u043f\u0440\u043e\u0441\u0438\u043c\u043e {0}
+openid-login.label.Logout=\u0412\u0438\u0445\u0456\u0434
+openid-login.label.OpenID=OpenID
+openid-login.label.ProviderLogin={0} \u0412\u0445\u0456\u0434
+openid-login.label.ErrorNoProvider=Valid OpenID provider or URL not specified.
+openid-login.label.ErrorCannotAuthenticate=Cannot authenticate with OpenID provider.
+openid-login.label.ErrorNotAuthenticated=OpenID provider did not authenticate login.
+openid-login.label.ErrorNoPortaUser=Portal user not registered for login.
+openid-login.label.ErrorCannotLogin=Cannot login registered portal user.
Added: portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_zh.properties
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_zh.properties?rev=907379&view=auto
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_zh.properties (added)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_zh.properties Sun Feb 7 05:07:15 2010
@@ -0,0 +1,36 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# $Id: LoginResources_zh.properties 348264 2005-11-22 22:06:45Z taylor $
+#
+# LOCALIZATION MAINTAINER:
+# Yi Shen <sh...@gmail.com>
+# James Liao <ji...@gmail.com>
+
+# portlet info
+javax.portlet.title=OpenID\u767b\u5f55Portlet
+javax.portlet.short-title=OpenID\u767b\u5f55Portlet
+
+# openid-login.jsp
+openid-login.label.Login=\u767b \u5f55
+openid-login.label.Welcome=\u6b22\u8fce {0}
+openid-login.label.Logout=\u6ce8 \u9500
+openid-login.label.OpenID=OpenID
+openid-login.label.ProviderLogin={0} \u767b \u5f55
+openid-login.label.ErrorNoProvider=Valid OpenID provider or URL not specified.
+openid-login.label.ErrorCannotAuthenticate=Cannot authenticate with OpenID provider.
+openid-login.label.ErrorNotAuthenticated=OpenID provider did not authenticate login.
+openid-login.label.ErrorNoPortaUser=Portal user not registered for login.
+openid-login.label.ErrorCannotLogin=Cannot login registered portal user.
Added: portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_zh_TW.properties
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_zh_TW.properties?rev=907379&view=auto
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_zh_TW.properties (added)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/security/resources/OpenIDLoginResources_zh_TW.properties Sun Feb 7 05:07:15 2010
@@ -0,0 +1,35 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# $Id: LoginResources_zh.properties 348264 2005-11-22 22:06:45Z taylor $
+#
+# LOCALIZATION MAINTAINER:
+# Cubehead Fang <cu...@gmail.com>
+
+# portlet info
+javax.portlet.title=OpenID\u767b\u9304Portlet
+javax.portlet.short-title=OpenID\u767b\u9304Portlet
+
+# openid-login.jsp
+openid-login.label.Login=\u767b \u9304
+openid-login.label.Welcome=\u6b61\u8fce {0}
+openid-login.label.Logout=\u8a3b \u92b7
+openid-login.label.OpenID=OpenID
+openid-login.label.ProviderLogin={0} \u767b \u9304
+openid-login.label.ErrorNoProvider=Valid OpenID provider or URL not specified.
+openid-login.label.ErrorCannotAuthenticate=Cannot authenticate with OpenID provider.
+openid-login.label.ErrorNotAuthenticated=OpenID provider did not authenticate login.
+openid-login.label.ErrorNoPortaUser=Portal user not registered for login.
+openid-login.label.ErrorCannotLogin=Cannot login registered portal user.
Modified: portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/jetspeed-portlet.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/jetspeed-portlet.xml?rev=907379&r1=907378&r2=907379&view=diff
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/jetspeed-portlet.xml (original)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/jetspeed-portlet.xml Sun Feb 7 05:07:15 2010
@@ -44,7 +44,14 @@
<js:metadata name="selector.conditional.role">admin</js:metadata>
</portlet>
- <portlet>
+ <portlet>
+ <portlet-name>OpenIDLoginPortlet</portlet-name>
+ <js:security-constraint-ref>public-view</js:security-constraint-ref>
+ <dc:title>OpenID Login Portlet</dc:title>
+ <dc:creator>J2 Team</dc:creator>
+ </portlet>
+
+ <portlet>
<portlet-name>PortalLoginPortlet</portlet-name>
<js:security-constraint-ref>public-view</js:security-constraint-ref>
<dc:title>Portal Login Portlet</dc:title>
Modified: portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/portlet.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/portlet.xml?rev=907379&r1=907378&r2=907379&view=diff
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/portlet.xml (original)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/portlet.xml Sun Feb 7 05:07:15 2010
@@ -98,6 +98,123 @@
</portlet-info>
</portlet>
+ <portlet id="OpenIDLoginPortlet">
+ <description>
+ Logs a user on to the Jetspeed portal using an OpenID Provider
+ and a built in Relaying Party servlet implmentation. Copies
+ and maintains user information in Jetspeed user data on login.
+ </description>
+ <portlet-name>OpenIDLoginPortlet</portlet-name>
+ <display-name>OpenID Login Portlet</display-name>
+ <portlet-class>org.apache.jetspeed.portlets.openid.OpenIDLoginPortlet</portlet-class>
+ <init-param>
+ <name>ViewPage</name>
+ <value>/WEB-INF/security/login/openid-login.jsp</value>
+ </init-param>
+ <init-param>
+ <name>EditPage</name>
+ <value>/WEB-INF/security/login/openid-login-prefs.jsp</value>
+ </init-param>
+ <init-param>
+ <description>Enable portlet init parameter registration configuration.</description>
+ <name>enableRegistrationConfig</name>
+ <value>false</value>
+ </init-param>
+ <init-param>
+ <description>Global enable new user registration.</description>
+ <name>enableRegistration</name>
+ <value>true</value>
+ </init-param>
+ <init-param>
+ <description>Global new user template directory to be used for registration.</description>
+ <name>newUserTemplateDirectory</name>
+ <value>/_template/new-user/</value>
+ </init-param>
+ <init-param>
+ <description>Global subsite root folder to be used for registration.</description>
+ <name>subsiteRootFolder</name>
+ <value></value>
+ </init-param>
+ <init-param>
+ <description>Global roles to be assigned at registration.</description>
+ <name>roles</name>
+ <value>user</value>
+ </init-param>
+ <init-param>
+ <description>Global groups to be assigned at registration.</description>
+ <name>groups</name>
+ <value></value>
+ </init-param>
+ <init-param>
+ <description>Global profiling rule names to be assigned at registration.</description>
+ <name>rulesNames</name>
+ <value>page</value>
+ </init-param>
+ <init-param>
+ <description>Global profiling rule values to be assigned at registration.</description>
+ <name>rulesValues</name>
+ <value>j2</value>
+ </init-param>
+ <init-param>
+ <name>portlet-icon</name>
+ <value>system-lock-screen.png</value>
+ </init-param>
+ <expiration-cache>0</expiration-cache>
+ <supports>
+ <mime-type>text/html</mime-type>
+ <portlet-mode>VIEW</portlet-mode>
+ <portlet-mode>edit_defaults</portlet-mode>
+ </supports>
+ <resource-bundle>org.apache.jetspeed.portlets.security.resources.OpenIDLoginResources</resource-bundle>
+ <portlet-preferences>
+ <!-- Enable portlet preferences registration configuration. -->
+ <preference>
+ <name>enableRegistrationConfig</name>
+ <value>false</value>
+ </preference>
+ <!-- New user registration. -->
+ <preference>
+ <name>enableRegistration</name>
+ <value>true</value>
+ </preference>
+ <!-- New user template directory to be used for registration. -->
+ <preference>
+ <name>newUserTemplateDirectory</name>
+ <value>/_template/new-user/</value>
+ </preference>
+ <!-- Subsite root folder to be used for registration. -->
+ <preference>
+ <name>subsiteRootFolder</name>
+ <value></value>
+ </preference>
+ <!-- Roles to be assigned at registration. -->
+ <preference>
+ <name>roles</name>
+ <value>user</value>
+ </preference>
+ <!-- Groups to be assigned at registration. -->
+ <preference>
+ <name>groups</name>
+ <value></value>
+ </preference>
+ <!-- Profiling rule names to be assigned at registration. -->
+ <preference>
+ <name>rulesNames</name>
+ <value>page</value>
+ </preference>
+ <!-- Profiling rule values to be assigned at registration. -->
+ <preference>
+ <name>rulesValues</name>
+ <value>j2</value>
+ </preference>
+ </portlet-preferences>
+ <portlet-info>
+ <title>OpenID Login</title>
+ <short-title>OpenID Login</short-title>
+ <keywords>openid,login,security,management,admin</keywords>
+ </portlet-info>
+ </portlet>
+
<portlet id="ChangePasswordPortlet">
<description>Portlet for changing the password of the
current, logged on user.</description>
Added: portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/security/login/openid-login-prefs.jsp
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/security/login/openid-login-prefs.jsp?rev=907379&view=auto
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/security/login/openid-login-prefs.jsp (added)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/security/login/openid-login-prefs.jsp Sun Feb 7 05:07:15 2010
@@ -0,0 +1,99 @@
+<%--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+--%>
+<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
+<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
+<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c_rt"%>
+<%@taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
+
+<%@page import="org.apache.jetspeed.portlets.openid.OpenIDLoginPortlet"%>
+
+<portlet:defineObjects/>
+<c_rt:set var="saveAction" value="<%=OpenIDLoginPortlet.SAVE_ACTION_PARAM_NAME%>"/>
+<c_rt:set var="enableConfigPrefName" value="<%=OpenIDLoginPortlet.ENABLE_REGISTRATION_CONFIG_PREF_NAME%>"/>
+<c_rt:set var="enableConfig" value="<%=Boolean.parseBoolean((String)renderRequest.getAttribute(OpenIDLoginPortlet.ENABLE_REGISTRATION_CONFIG_PREF_NAME))%>"/>
+<c_rt:set var="enablePrefName" value="<%=OpenIDLoginPortlet.ENABLE_REGISTRATION_PREF_NAME%>"/>
+<c_rt:set var="enable" value="<%=Boolean.parseBoolean((String)renderRequest.getAttribute(OpenIDLoginPortlet.ENABLE_REGISTRATION_PREF_NAME))%>"/>
+<c_rt:set var="userTemplatePrefName" value="<%=OpenIDLoginPortlet.REGISTRATION_USER_TEMPLATE_PREF_NAME%>"/>
+<c_rt:set var="userTemplate" value="<%=renderRequest.getAttribute(OpenIDLoginPortlet.REGISTRATION_USER_TEMPLATE_PREF_NAME)%>"/>
+<c_rt:set var="subsiteRootPrefName" value="<%=OpenIDLoginPortlet.REGISTRATION_SUBSITE_ROOT_PREF_NAME%>"/>
+<c_rt:set var="subsiteRoot" value="<%=renderRequest.getAttribute(OpenIDLoginPortlet.REGISTRATION_SUBSITE_ROOT_PREF_NAME)%>"/>
+<c_rt:set var="rolesPrefName" value="<%=OpenIDLoginPortlet.REGISTRATION_ROLES_PREF_NAME%>"/>
+<c_rt:set var="roles" value="<%=renderRequest.getAttribute(OpenIDLoginPortlet.REGISTRATION_ROLES_PREF_NAME)%>"/>
+<c_rt:set var="groupsPrefName" value="<%=OpenIDLoginPortlet.REGISTRATION_GROUPS_PREF_NAME%>"/>
+<c_rt:set var="groups" value="<%=renderRequest.getAttribute(OpenIDLoginPortlet.REGISTRATION_GROUPS_PREF_NAME)%>"/>
+<c_rt:set var="ruleNamesPrefName" value="<%=OpenIDLoginPortlet.REGISTRATION_PROFILER_RULE_NAMES_PREF_NAME%>"/>
+<c_rt:set var="ruleNames" value="<%=renderRequest.getAttribute(OpenIDLoginPortlet.REGISTRATION_PROFILER_RULE_NAMES_PREF_NAME)%>"/>
+<c_rt:set var="ruleValuesPrefName" value="<%=OpenIDLoginPortlet.REGISTRATION_PROFILER_RULE_VALUES_PREF_NAME%>"/>
+<c_rt:set var="ruleValues" value="<%=renderRequest.getAttribute(OpenIDLoginPortlet.REGISTRATION_PROFILER_RULE_VALUES_PREF_NAME)%>"/>
+
+<div class="portlet-section-text">
+ <form method="POST" action='<portlet:actionURL/>'>
+ <table border="0">
+ <tr>
+ <td nowrap align="right" class="portlet-section-alternate">Enable Preferences: </td>
+ <td align="left" class="portlet-section-body">
+ <input type="checkbox" name="${enableConfigPrefName}" value="true" <c:if test="${enableConfig == 'true'}">checked</c:if>/>
+ </td>
+ </tr>
+ <tr>
+ <td nowrap align="right" class="portlet-section-alternate">Enable Registration: </td>
+ <td align="left" class="portlet-section-body">
+ <input type="checkbox" name="${enablePrefName}" value="true" <c:if test="${enable == 'true'}">checked</c:if>/>
+ </td>
+ </tr>
+ <tr>
+ <td nowrap align="right" class="portlet-section-alternate">New User Template Directory: </td>
+ <td align="left" class="portlet-section-body">
+ <input type="text" size="40" name="${userTemplatePrefName}" value="${userTemplate}" class="portlet-form-field-label"/>
+ </td>
+ </tr>
+ <tr>
+ <td nowrap align="right" class="portlet-section-alternate">Subsite Root Folder: </td>
+ <td align="left" class="portlet-section-body">
+ <input type="text" size="40" name="${subsiteRootPrefName}" value="${subsiteRoot}" class="portlet-form-field-label"/>
+ </td>
+ </tr>
+ <tr>
+ <td nowrap align="right" class="portlet-section-alternate">Roles List: </td>
+ <td align="left" class="portlet-section-body">
+ <input type="text" size="40" name="${rolesPrefName}" value="${roles}" class="portlet-form-field-label"/>
+ </td>
+ </tr>
+ <tr>
+ <td nowrap align="right" class="portlet-section-alternate">Groups List: </td>
+ <td align="left" class="portlet-section-body">
+ <input type="text" size="40" name="${groupsPrefName}" value="${groups}" class="portlet-form-field-label"/>
+ </td>
+ </tr>
+ <tr>
+ <td nowrap align="right" class="portlet-section-alternate">Profiler Rule Names List: </td>
+ <td align="left" class="portlet-section-body">
+ <input type="text" size="40" name="${ruleNamesPrefName}" value="${ruleNames}" class="portlet-form-field-label"/>
+ </td>
+ </tr>
+ <tr>
+ <td nowrap align="right" class="portlet-section-alternate">Profiler Rule Values List: </td>
+ <td align="left" class="portlet-section-body">
+ <input type="text" size="40" name="${ruleValuesPrefName}" value="${ruleValues}" class="portlet-form-field-label"/>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2"><input type="submit" name="${saveAction}" value="Save"/><input type="submit" value="Cancel"/></td>
+ </tr>
+ </table>
+ </form>
+</div>
Added: portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/security/login/openid-login.jsp
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/security/login/openid-login.jsp?rev=907379&view=auto
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/security/login/openid-login.jsp (added)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/security/login/openid-login.jsp Sun Feb 7 05:07:15 2010
@@ -0,0 +1,61 @@
+<%--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+--%>
+<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
+<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
+<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c_rt"%>
+<%@taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
+
+<%@page import="org.apache.jetspeed.openid.OpenIDConstants"%>
+
+<fmt:setBundle basename="org.apache.jetspeed.portlets.security.resources.OpenIDLoginResources"/>
+
+<portlet:defineObjects/>
+<c_rt:set var="openIDReturn" value="<%=OpenIDConstants.OPEN_ID_RETURN%>"/>
+<c_rt:set var="openIDDiscovery" value="<%=OpenIDConstants.OPEN_ID_DISCOVERY%>"/>
+<c_rt:set var="openIDProvider" value="<%=OpenIDConstants.OPEN_ID_PROVIDER%>"/>
+<c_rt:set var="openIDRequest" value="<%=OpenIDConstants.OPEN_ID_REQUEST%>"/>
+<c_rt:set var="openIDLoginRequest" value="<%=OpenIDConstants.OPEN_ID_LOGIN_REQUEST%>"/>
+<c_rt:set var="openIDLogoutRequest" value="<%=OpenIDConstants.OPEN_ID_LOGOUT_REQUEST%>"/>
+<c_rt:set var="openIDError" value="<%=renderRequest.getAttribute(OpenIDConstants.OPEN_ID_ERROR)%>"/>
+
+<div class="portlet-section-text">
+ <c:choose>
+ <c:when test="${pageContext.request.userPrincipal != null}">
+ <fmt:message key="openid-login.label.Welcome"><fmt:param><c:out value="${pageContext.request.userPrincipal.name}"/></fmt:param></fmt:message>
+ <form method="POST" action='<portlet:actionURL/>'>
+ <input type="submit" value='<fmt:message key="openid-login.label.Logout"/>'/>
+ <input type="hidden" name="${openIDRequest}" value="${openIDLogoutRequest}"/>
+ </form>
+ </c:when>
+ <c:otherwise>
+ <c:if test="${openIDError != null}"><div class="portlet-msg-alert"><fmt:message key="openid-login.label.${openIDError}"/></div><br/></c:if>
+ <form method="POST" action='<portlet:actionURL/>'>
+ <input type="hidden" name="${openIDProvider}"/>
+ <input type="submit" value='<fmt:message key="openid-login.label.ProviderLogin"><fmt:param><c:out value="Google"/></fmt:param></fmt:message>' onclick="this.form.elements[0].value='gmail.com'; true"/>
+ <input type="submit" value='<fmt:message key="openid-login.label.ProviderLogin"><fmt:param><c:out value="Yahoo!"/></fmt:param></fmt:message>' onclick="this.form.elements[0].value='yahoo.com'; true"/>
+ <input type="submit" value='<fmt:message key="openid-login.label.ProviderLogin"><fmt:param><c:out value="myOpenID"/></fmt:param></fmt:message>' onclick="this.form.elements[0].value='myopenid.com'; true"/>
+ <input type="hidden" name="${openIDRequest}" value="${openIDLoginRequest}"/>
+ </form>
+ <form method="POST" action='<portlet:actionURL/>'>
+ <span class="portlet-form-field-label"><fmt:message key="openid-login.label.OpenID"/></span>
+ <input type="text" class="portlet-form-field" size="30" name="${openIDDiscovery}"/>
+ <input type="submit" class="portlet-form-button" value='<fmt:message key="openid-login.label.Login"/>'/>
+ <input type="hidden" name="${openIDRequest}" value="${openIDLoginRequest}"/>
+ </form>
+ </c:otherwise>
+ </c:choose>
+</div>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org