Allow auth on public endpoints and delete guest docs
All checks were successful
build-and-deploy / build-deploy (push) Successful in 32s

This commit is contained in:
androidlover5842
2026-01-30 23:51:48 +05:30
parent 6ffae0f9af
commit bee831c52b
2 changed files with 36 additions and 1 deletions

View File

@@ -20,7 +20,11 @@ class FirebaseAuthFilter(
private val logger = LoggerFactory.getLogger(FirebaseAuthFilter::class.java)
override fun shouldNotFilter(request: HttpServletRequest): Boolean {
return PublicEndpoints.isPublic(request)
if (!PublicEndpoints.isPublic(request)) {
return false
}
val header = request.getHeader(HttpHeaders.AUTHORIZATION)
return header.isNullOrBlank() || !header.startsWith("Bearer ")
}
override fun doFilterInternal(