Allow auth on public endpoints and delete guest docs
All checks were successful
build-and-deploy / build-deploy (push) Successful in 32s
All checks were successful
build-and-deploy / build-deploy (push) Successful in 32s
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user