Spring Security OAuth2 login redirect to error page despite being successful
问题 As to not reveal confidential information, the provider will be replaced by $PROVIDER . The authorization works, but instead of redirecting me to the index, it redirects me to /error . Steps to reproduce Start the application Go on any page, it will redirect me to http://localhost/oauth_login which displays a link login . Click on the link login (which links to http://localhost/oauth2/authorization/$PROVIDER ) Get redirected to http://localhost/error The error page displays the following (I