<!-- database settings for tests -->
<jdbc.groupId>com.h2database</jdbc.groupId>
<jdbc.artifactId>h2</jdbc.artifactId>
+ <jdbc.url><![CDATA[jdbc:h2:~/test;DB_CLOSE_ON_EXIT=FALSE]]></jdbc.url>
+ <jdbc.username>sa</jdbc.username>
+ <jdbc.password></jdbc.password>
</properties>
<dependencies>
http
.csrf()
/**
- * The Facebook-Canvas does not send a proper CSRF-token in its
- * POST-requests. Hence, this feature has to be disabled for all
- * pages, that receive an initial call from the Facebook-Canvas.
+ * Neither the Facebook-Canvas nor the H2-console does send a proper
+ * CSRF-token in its POST-requests. Hence, this feature has to be
+ * disabled for this pages.
*/
- .ignoringAntMatchers("/canvas/*")
+ .ignoringAntMatchers("/canvas/*", "/h2-console/*")
.and()
.exceptionHandling()
.authenticationEntryPoint(authenticationEntryPoint)
spring.thymeleaf.prefix=/thymeleaf/
spring.thymeleaf.cache=false
+spring.datasource.url=@jdbc.url@
+spring.datasource.username=@jdbc.username@
+spring.datasource.password=@jdbc.password@
spring.datasource.continueOnError=true
+spring.h2.console.enabled=true
logging.level.org.springframework.social=debug
logging.level.org.apache.http=@httpclient.logging.level@
<ul>
<li><a href="connect/facebookConnected.html" th:href="@{/connect/facebook.html}">Show connection-status</a></li>
<li><a href="profile.html" th:href="@{/profile.html}">Show public profile-data</a></li>
+ <li><a href="#" th:href="@{/h2-console}">Connect to the H2-console</a></li>
</ul>
</body>
</html>