How to test Keycloak authentication in Spring Boot application?
问题 In a Spring Boot project we enabled Spring Security and applied Keycloak authentication with bearer token like described in the following articles: https://www.keycloak.org/docs/3.2/securing_apps/topics/oidc/java/spring-security-adapter.html https://www.keycloak.org/docs/3.2/securing_apps/topics/oidc/java/spring-boot-adapter.html But i can't find any recommendations how to make automation tests so that the Keycloak config is applied. So, how to test/mock/verify the Keycloak configuration when