<%@page import="org.apache.oodt.security.sso.SingleSignOn"%> <% // Licensed to the Apache Software Foundation (ASF) under one or more contributor // license agreements. See the NOTICE.txt 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. // Set up parameters for single signon authentication SingleSignOn auth = SSOUtils.getWebSingleSignOn(application, request, response); String refererUrl = request.getRequestURI(); String userDetails = ""; // Determine text to show in the user details area if(auth.isLoggedIn()){ userDetails = "Logged in as " + auth.getCurrentUsername() + "  Log Out"; } else { userDetails = "Not logged in. Log In"; } // Retrieve the breadcrumbs to display on this page String breadcrumbString = ""; if (session.getAttribute("breadcrumbs") != null) { String breadcrumbs[] = (String[]) session.getAttribute("breadcrumbs"); for (int i = 0; i < breadcrumbs.length; i++) { // Breadcrumbs are specified on individual pages as an array // of String objects, each with the following format: // either: label (for a non-clickable breadcrumb) // or: label:url (for a clickable link breadcrumb) String[] parts = (String[]) ((String)breadcrumbs[i]).split(":"); if (parts.length == 2) { if (parts[1].startsWith("/")) { // Process a breadcrumb with an absolute clickable link breadcrumbString += (" / " + "" + parts[0] + ""); } else { // Process a breadcrumb with a relative clickable link breadcrumbString += (" / " + "" + parts[0] + ""); } } else { // Process a non-clickable breadcrumb breadcrumbString += (" / " + parts[0]); } } // Clear the breadcrumb data from the session after processing. // This prevents a page which does not explicitly set its own breadcrumb data from // displaying breadcrumbs left over from a previous page session.setAttribute("breadcrumbs",null); } %> <%@page import="org.apache.oodt.cas.curation.util.SSOUtils"%> <%@page import="org.apache.oodt.security.sso.AbstractWebBasedSingleSignOn"%> <%@page import="org.apache.oodt.security.sso.SingleSignOn"%> <%@page import="org.apache.oodt.cas.curation.servlet.CuratorConfMetKeys"%> <% String projectName = application.getInitParameter(CuratorConfMetKeys.PROJECT_DISPLAY_NAME);%> <%=(projectName != null ? projectName+" :: ":"")%>CAS

<%=(projectName != null ? projectName:"")%> CAS Curation

<%=userDetails %>