<%@ page language="java"%> <%@page import="org.dataone.client.D1Client"%> <%@page import="java.net.URL"%> <% /** * '$RCSfile$' * Authors: Matt Jones * Copyright: 2008 Regents of the University of California and the * National Center for Ecological Analysis and Synthesis * For Details: http://www.nceas.ucsb.edu/ * * '$Author: leinfelder $' * '$Date: 2014-12-03 00:21:15 +0000 (Wed, 03 Dec 2014) $' * '$Revision: 9010 $' * * This is an HTML document for loading an xml document into Oracle * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ %> <%@ include file="../../common/common-settings.jsp"%> <%@ include file="../../common/configure-check.jsp"%> <%@page import="edu.ucsb.nceas.metacat.service.SessionService"%> <% //get the CN environment, dynamically String cnURL = D1Client.getCN().getNodeBaseServiceUrl(); String portalURL = cnURL.substring(0, cnURL.lastIndexOf(new URL(cnURL).getPath())) + "/portal"; //String portalURL = "https://cn.dataone.org/portal"; // what was the given DataONE identity? String d1Identity = request.getParameter("d1Identity"); String token = request.getParameter("token"); // look up the username from the given session String sessionId = request.getParameter("sessionId"); if (sessionId == null) { if (request.getSession() != null) { sessionId = request.getSession().getId(); } } if (sessionId == null || !SessionService.getInstance().isSessionRegistered(sessionId)) { // redirect to the login page response.sendRedirect(STYLE_SKINS_URL + "/dataone/login.jsp"); return; } String userName = SessionService.getInstance().getRegisteredSession(sessionId).getUserName(); %> Map legacy account to DataONE

Use this form to connect your old ecoinformatics account to your new CILogon identity. (register with DataONE)

Your current ecoinformatics account (switch to another account):
<%=userName %>

Will be mapped to this CILogon identity (login):
Enter this temporary token:
In the box below: