title: Single login page within authorization server using Spring Boot and OAUTH2
body: <p>I need an OAUTH2 authentication server for my single page webapps. I was able to build OAuth2 authentication server that supports grant type PASSWORD using Spring Boot. But Spring requires a client secret for basic authentication on the /auth/token endpoint. I red it's not safe, anyone could extract the client secret from the JS code. So I'm trying to find out how to do it without revealing the client secret. Also I wish each my SPA don't have it's own login page but there's one login page within the auth server to which users of my SPAs would be redirected and they would be redirected back after login. I know this is common scenario but I was unable to find a tutorial how to do that using Spring Boot. I'll be thankful for an advice.</p>