Keycloak In Existing Spring Boot Project Integration

Hello Keycloak Community,

I am trying to integrate keycloak with existing spring boot microservice which have already many endpoints running with lot of interceptors like JWTTOkenInterceptor etc.
But I want to integrate keycloak security with new APIs only but Filters of Keycloak running for exisiting APIs also ever after below configurations.
SPring Boot Version - 2.4
Dependecies

org.keycloak
keycloak-spring-boot-starter
21.0.0


org.springframework.boot
spring-boot-starter-security


org.keycloak.bom
keycloak-adapter-bom
20.0.2
pom
import

Code:-

I have ignore all other endpoints but still keycloak spring web security filters are running and blocking exisiting APIs as well

Error :-1:
13:40:50.821 DEBUG 34363 — [nio-9998-exec-5] o.k.adapters.PreAuthActionsHandler : adminRequest {url}/api/v1/login/otp/request
2023-03-12 13:40:50.822 DEBUG 34363 — [nio-9998-exec-5] o.k.adapters.PreAuthActionsHandler : checkCorsPreflight {url}/api/v1/login/otp/request
2023-03-12 13:41:55.510 DEBUG 34363 — [nio-9998-exec-5] o.k.a.BearerTokenRequestAuthenticator : Authorization header not present
2023-03-12 13:41:55.511 DEBUG 34363 — [nio-9998-exec-5] .QueryParameterTokenRequestAuthenticator : Token is not present in query
2023-03-12 13:41:55.511 DEBUG 34363 — [nio-9998-exec-5] o.k.adapters.RequestAuthenticator : NOT_ATTEMPTED: bearer only

Please help here

You can use multiple adapter configuration in your spring security config class. This would allow you to specify different mechanisms for different endpoints

here are a few resources to help