I followed this guide and cloned the authserver. The project has an authserver and a client (as test). Example works fine but if I remove context-path property (I just want my app to work on /), it fails after redirect back to the client. Example:
- Go to the
client(localhost:9999); - Redirected to the
authserver(localhost:8080); - Login through GitHub;
- Redirected to the
authserverand immediatly to theclientwith next url:
Whitelabel error page responds:
There was an unexpected error (type=Unauthorized, status=401).
Authentication Failed: Could not obtain access token
As I mentioned above, it fails only if context-path is / (or removed at all). Otherwise, all works.