Skip to content

Commit 3c406a7

Browse files
committed
Updated sprig boot version. Updated spring security config to ignore csrf for certain endpoints.
1 parent 6b625e8 commit 3c406a7

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<parent>
1919
<groupId>org.springframework.boot</groupId>
2020
<artifactId>spring-boot-starter-parent</artifactId>
21-
<version>1.4.0.RELEASE</version>
21+
<version>1.5.1.RELEASE</version>
2222
<relativePath/> <!-- lookup parent from repository -->
2323
</parent>
2424

roadstorm-jwt-csrf-tutorial/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33

44
<modelVersion>4.0.0</modelVersion>
55

@@ -12,9 +12,9 @@
1212
<description>Exercising the JJWT</description>
1313

1414
<parent>
15-
<groupId>com.stormpath.tutorial</groupId>
16-
<artifactId>stormpath-java-road-storm-tour</artifactId>
17-
<version>0.1.0-SNAPSHOT</version>
15+
<groupId>com.stormpath.tutorial</groupId>
16+
<artifactId>stormpath-java-road-storm-tour</artifactId>
17+
<version>0.1.0-SNAPSHOT</version>
1818
<relativePath>../pom.xml</relativePath>
1919
</parent>
2020

roadstorm-jwt-csrf-tutorial/src/main/java/io/jsonwebtoken/jjwtfun/config/DefaultWebSecurityConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,7 @@ protected void configure(HttpSecurity http) throws Exception {
1515
.authorizeRequests()
1616
.antMatchers("/**")
1717
.permitAll();
18+
19+
http.csrf().ignoringAntMatchers("/dynamic**", "/static**", "/parser**");
1820
}
1921
}

roadstorm-jwt-microservices-tutorial/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
<description>Demo project for Spring Boot</description>
1313

1414
<parent>
15-
<groupId>com.stormpath.tutorial</groupId>
16-
<artifactId>stormpath-java-road-storm-tour</artifactId>
17-
<version>0.1.0-SNAPSHOT</version>
15+
<groupId>com.stormpath.tutorial</groupId>
16+
<artifactId>stormpath-java-road-storm-tour</artifactId>
17+
<version>0.1.0-SNAPSHOT</version>
1818
<relativePath>../pom.xml</relativePath>
1919
</parent>
2020

0 commit comments

Comments
 (0)