Skip to content

Commit 9eac39e

Browse files
committed
pom.xml: update Togglz to 2.2.0
@see http://www.togglz.org/whats-new.html @see http://www.togglz.org/updating-notes.html No functional changes.
1 parent 07a5309 commit 9eac39e

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<commons.lang.version>3.3.2</commons.lang.version>
3333
<commons.io.version>2.4</commons.io.version>
3434
<thymeleaf.togglz.version>1.0.1.RELEASE</thymeleaf.togglz.version>
35-
<togglz.version>2.1.0.Final</togglz.version>
35+
<togglz.version>2.2.0.Final</togglz.version>
3636

3737
<!--
3838
Also don't forget to change version in:
@@ -281,7 +281,7 @@
281281

282282
<dependency>
283283
<groupId>org.togglz</groupId>
284-
<artifactId>togglz-spring</artifactId>
284+
<artifactId>togglz-spring-core</artifactId>
285285
<version>${togglz.version}</version>
286286
<scope>runtime</scope>
287287
</dependency>

src/main/java/ru/mystamps/web/support/spring/security/SecurityConfig.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,9 @@ protected void configure(HttpSecurity http) throws Exception {
9494
.authenticationEntryPoint(new Http401UnauthorizedEntryPoint())
9595
.and()
9696
.csrf()
97-
// Allow unsecured requests to Togglz and H2 consoles.
98-
// See also: https://github.com/togglz/togglz/issues/119
97+
// Allow unsecured requests to H2 consoles.
9998
// See also: src/main/java/ru/mystamps/web/support/h2/H2Config.java
100-
// See also: src/main/java/ru/mystamps/web/support/togglz/TogglzConfig.java
101-
.requireCsrfProtectionMatcher(
102-
new AllExceptUrlsStartedWith(Url.TOGGLZ_CONSOLE_PAGE, "/console")
103-
)
99+
.requireCsrfProtectionMatcher(new AllExceptUrlsStartedWith("/console"))
104100
.and()
105101
.rememberMe()
106102
// TODO: GH #27

0 commit comments

Comments
 (0)