title: How to specify resources for OAuth2 login redirect in Spring security?
body: <p>I've configured my Spring boot server to use OAuth2 login using Spring security.</p>
  <p>How can I configure the OAuth2 login redirect to work only for the root index URL?</p>
  <p>For other requests, I would like to receive 401 in case of an invalid session.</p>