diff --git a/samples/xml/openid/src/main/webapp/index.jsp b/samples/xml/openid/src/main/webapp/index.jsp
index f78494ccef..868f99600e 100644
--- a/samples/xml/openid/src/main/webapp/index.jsp
+++ b/samples/xml/openid/src/main/webapp/index.jsp
@@ -1,3 +1,4 @@
+<%@ page import="org.springframework.security.web.csrf.CsrfToken" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
@@ -27,6 +28,11 @@ by the application and will be recognized if you return.
Your principal object is....: <%= request.getUserPrincipal() %>
-Logout
+<% CsrfToken token = (CsrfToken) request.getAttribute(CsrfToken.class.getName()); %>
+
+Logout