In my case, I had put the `@EnableOAuth2Sso` annotation on the class annotated with `@SpringBootApplication`, but I also had a separate class extending `WebSecurityConfigurerAdapter`. As the documentation of `@EnableOAuth2Sso` says:
> If there is an existing WebSecurityConfigurerAdapter provided by the user and annotated with @EnableOAuth2Sso, it is enhanced by adding an authentication filter and an authentication entry point. If the user only has @EnableOAuth2Sso but not on a WebSecurityConfigurerAdapter **then one is added** with all paths secured.
Since a default adapter was being added, I ended up with two, which caused the exception.
The solution was of course to move the `@EnableOAuth2Sso` annotation to the class which extended `WebSecurityConfigurerAdapter`.