skip to Main Content

Spring Security + Keycloak: 403 after login – Ubuntu

I try to reproduce a https://www.baeldung.com/spring-boot-keycloak tutorial with some simplifications. Also my Keycloak server is on another machine. Config is also slightly changed due to deprecation of the antMatchers: @Configuration @EnableWebSecurity class SecurityConfig { private final KeycloakLogoutHandler keycloakLogoutHandler; SecurityConfig(KeycloakLogoutHandler keycloakLogoutHandler)…

VIEW QUESTION

Spring Boot + MySQL Docker Compose: port exposure refused connection

Spring Boot + MySQL + Docker here. I have the following docker-compose.yml: version: "3.8" services: myappws_mono_db: image: mysql:8.0.32 restart: unless-stopped environment: - MYSQL_ROOT_PASSWORD=$MAIN_DB_ROOT_PASSWORD - MYSQL_DATABASE=$MAIN_DB_DATABASE - MYSQL_CHARSET=utf8mb4 - MYSQL_COLLATION=utf8mb4_0900_ai_ci - MYSQL_ENGINE=InnoDB ports: - $MAIN_DB_PORT:$MAIN_DB_DOCKER_PORT volumes: - db:/var/lib/mysql myappws: depends_on: -…

VIEW QUESTION
Back To Top
Search