Spring Security Examples with KeyCloak For the legacy Spring Security 5 OAuth2 Client example, check the docs here, and get the source codes from tag boot-2.x