forked from DSpace/DSpace
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from CityOfNewYork/v2.1
Merge v2.1 changes into master
- Loading branch information
Showing
17 changed files
with
525 additions
and
353 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 9 additions & 2 deletions
11
dspace-jspui/src/main/java/org/dspace/app/webui/servlet/SAMLLogoutServlet.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
package org.dspace.app.webui.servlet; | ||
|
||
import java.io.IOException; | ||
import org.springframework.security.core.context.SecurityContextHolder; | ||
|
||
import javax.servlet.http.HttpServlet; | ||
import javax.servlet.http.HttpServletRequest; | ||
import javax.servlet.http.HttpServletResponse; | ||
import java.io.IOException; | ||
|
||
/** | ||
* | ||
*/ | ||
public class SAMLLogoutServlet extends HttpServlet { | ||
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException { | ||
// TODO: Logout of Dspace | ||
// Log out user from app after client session timeout | ||
if (request.getSession().getAttribute("SPRING_SECURITY_CONTEXT") != null) { | ||
SecurityContextHolder.clearContext(); | ||
request.getSession().invalidate(); | ||
request.getSession(); | ||
} | ||
response.sendRedirect(request.getContextPath()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
328 changes: 0 additions & 328 deletions
328
dspace-jspui/src/main/webapp/WEB-INF/spring/securityContext.xml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<%-- | ||
The contents of this file are subject to the license and copyright | ||
detailed in the LICENSE and NOTICE files at the root of the source | ||
tree and available online at | ||
http://www.dspace.org/license/ | ||
--%> | ||
<%-- | ||
- Display message indicating password is incorrect, and allow a retry | ||
--%> | ||
|
||
<%@ page contentType="text/html;charset=UTF-8" %> | ||
|
||
<%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %> | ||
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> | ||
|
||
<%@ page import="javax.servlet.jsp.jstl.fmt.LocaleSupport" %> | ||
|
||
<dspace:layout navbar="off" | ||
locbar="nolink" | ||
titlekey="jsp.login.ldap-incorrect.title"> | ||
<table border="0" width="90%"> | ||
<tr> | ||
<td align="left"> | ||
<h1><fmt:message key="jsp.login.ldap-incorrect.heading"/></h1> | ||
</td> | ||
<td align="right" class="standard"> | ||
<dspace:popup page="<%= LocaleSupport.getLocalizedMessage(pageContext, \"help.index\") + \"#login\" %>"><fmt:message key="jsp.help"/></dspace:popup> | ||
</td> | ||
</tr> | ||
</table> | ||
<p align="center"><strong><fmt:message key="jsp.login.ldap-incorrect.errormsg"/></strong></p> | ||
<dspace:include page="/components/ldap-form.jsp" /> | ||
</dspace:layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<%-- | ||
The contents of this file are subject to the license and copyright | ||
detailed in the LICENSE and NOTICE files at the root of the source | ||
tree and available online at | ||
http://www.dspace.org/license/ | ||
--%> | ||
<%-- | ||
- Page that displays the netid/password login form | ||
--%> | ||
|
||
<%@ page contentType="text/html;charset=UTF-8" %> | ||
|
||
<%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %> | ||
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> | ||
|
||
<%@ page import="javax.servlet.jsp.jstl.fmt.LocaleSupport" %> | ||
|
||
<dspace:layout navbar="off" | ||
locbar="off" | ||
titlekey="jsp.login.ldap.title"> | ||
|
||
<table border="0" width="90%"> | ||
<tr> | ||
<td align="left"> | ||
<h1><fmt:message key="jsp.login.ldap.heading"/></h1> | ||
</td> | ||
<td align="right" class="standard"> | ||
<dspace:popup page="<%= LocaleSupport.getLocalizedMessage(pageContext, \"help.index\") + \"#login\"%>"><fmt:message key="jsp.help"/></dspace:popup> | ||
</td> | ||
</tr> | ||
</table> | ||
<dspace:include page="/components/ldap-form.jsp" /> | ||
</dspace:layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<%-- | ||
The contents of this file are subject to the license and copyright | ||
detailed in the LICENSE and NOTICE files at the root of the source | ||
tree and available online at | ||
http://www.dspace.org/license/ | ||
--%> | ||
<%-- | ||
- Displays a message indicating the user has logged out | ||
--%> | ||
|
||
<%@ page contentType="text/html;charset=UTF-8" %> | ||
|
||
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" | ||
prefix="fmt" %> | ||
|
||
<%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %> | ||
|
||
<dspace:layout locbar="nolink" titlekey="jsp.login.logged-out.title"> | ||
<%-- <h1>Logged Out</h1> --%> | ||
<h1><fmt:message key="jsp.login.logged-out.title"/></h1> | ||
|
||
<%-- <p>Thank you for remembering to log out!</p> --%> | ||
<p><fmt:message key="jsp.login.logged-out.thank"/></p> | ||
<%-- <p><a href="<%= request.getContextPath() %>/">Go to DSpace Home</a></p> --%> | ||
<p><a href="<%= request.getContextPath() %>/"><fmt:message key="jsp.general.gohome"/></a></p> | ||
|
||
</dspace:layout> |
Oops, something went wrong.