Skip to content

Commit 89fe8f4

Browse files
committed
Merge pull request rajithd#3 from rajithd/fix/bugs
add hello and ignore it from authenticating
2 parents c42a0b7 + 33479c4 commit 89fe8f4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/main/java/com/rd/config/OAuth2Configuration.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public void configure(HttpSecurity http) throws Exception {
5858
.sessionCreationPolicy(SessionCreationPolicy.STATELESS)
5959
.and()
6060
.authorizeRequests()
61-
.antMatchers("/hello/**").permitAll()
61+
.antMatchers("/hello/").permitAll()
6262
.antMatchers("/secure/**").authenticated();
6363

6464
}

src/main/java/com/rd/config/SecurityConfiguration.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ public void configure(WebSecurity web) throws Exception {
4747
.antMatchers("/api/register")
4848
.antMatchers("/api/activate")
4949
.antMatchers("/api/lostpassword")
50-
.antMatchers("/api/resetpassword");
50+
.antMatchers("/api/resetpassword")
51+
.antMatchers("/api/hello");
5152

5253
}
5354

0 commit comments

Comments
 (0)