+ categories sort + analytics
This commit is contained in:
@@ -26,7 +26,10 @@ class BearerTokenFilter(private val authService: AuthService) : SecurityContextS
|
||||
override fun filter(exchange: ServerWebExchange, chain: WebFilterChain): Mono<Void> {
|
||||
val token = exchange.request.headers.getFirst(HttpHeaders.AUTHORIZATION)?.removePrefix("Bearer ")
|
||||
|
||||
if (exchange.request.path.value() == "/api/auth/login"){
|
||||
logger.info("here ${exchange.request.path.value()}")
|
||||
if (exchange.request.path.value() == "/api/auth/login" || exchange.request.path.value()
|
||||
.startsWith("/api/actuator")
|
||||
) {
|
||||
return chain.filter(exchange)
|
||||
}
|
||||
|
||||
@@ -52,8 +55,6 @@ class BearerTokenFilter(private val authService: AuthService) : SecurityContextS
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
package space.luminic.budgerapp.configs
|
||||
|
||||
import org.springframework.context.annotation.Bean
|
||||
import org.springframework.context.annotation.Configuration
|
||||
|
||||
//@Configuration
|
||||
//class CommonConfig {
|
||||
// @Bean
|
||||
// fun httpTraceRepository(): HttpTraceRepository {
|
||||
// return InMemoryHttpTraceRepository()
|
||||
// }
|
||||
//}
|
||||
Reference in New Issue
Block a user