Skip to content

Commit 33479c4

Browse files
author
Rajith
committed
add hello and ignore it from authenticating
1 parent c42a0b7 commit 33479c4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 1 deletion
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)