Skip to content
Snippets Groups Projects
Commit 745c74a4 authored by Luke O'mahony's avatar Luke O'mahony
Browse files

upd: updated security configuration for new rest controller

parent c6e4e672
Branches
No related merge requests found
......@@ -81,9 +81,9 @@ public class SpringSecurityConfig extends WebSecurityConfigurerAdapter {
"/**/*.css",
"/**/*.js")
.permitAll()
.antMatchers(HttpMethod.POST, "/api/auth/**", "/api/data/**", "/api/device/registerDevice")
.antMatchers(HttpMethod.POST, "/api/auth/**", "/api/data/**", "/api/device/*", "/api/shadow/*")
.permitAll()
.antMatchers(HttpMethod.GET, "/api/auth/**", "/api/data/**", "/api/device/registerDevice")
.antMatchers(HttpMethod.GET, "/api/auth/**", "/api/data/**", "/api/device/*", "/api/shadow/*")
.permitAll()
.antMatchers("/api/user/checkUsernameAvailability", "/api/user/checkEmailAvailability")
.permitAll()
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment