Learn how to test OAuth2 Single Sign-On implementations in Spring Boot applications without running actual authorization servers. The guide covers two approaches: bypassing authentication using MockMvc with Spring Security test configurations, and mocking the authorization server using WireMock. Both methods eliminate the need for Keycloak during testing while maintaining realistic test scenarios for OAuth2 SSO flows.
Sort: