Closed pull-vert closed 4 years ago
fixes #16
For webFlux
webFlux { port = 0 router { GET("/public-view") { ok().build() } GET("/view") { ok().build() } } security { authenticationManager = repoAuthenticationManager http { authorizeExchange { authorize("/public-view", permitAll) authorize("/view", hasRole("USER")) } httpBasic {} } } }
For webMvc
webMvc { port = 0 router { GET("/public-view") { ok().build() } GET("/view") { ok().build() } } security { authenticationManager = repoAuthenticationManager http { authorizeRequests { authorize("/public-view", permitAll) authorize("/view", hasRole("USER")) } httpBasic {} } } }
fixes #16
For webFlux
For webMvc