title: How change the default Spring Boot oauth urls (/login/oauth2/code and /oauth2/authorization)?
body: <p>The default URLs for starting oAuth and getting the auth code from the OAuth provider in Spring Boot are:</p>
  
  <ul>
  <li><code>/oauth2/authorization/{providerReg}</code> (example: <code>/oauth2/authorization/azure</code>)</li>
  <li><code>/login/oauth2/code/{providerReg}</code></li>
  </ul>
  
  <p>I need to change these so that they have a prefix in front of them. How do I do this?</p>
  
  <p>It appears as though this is hardcoded in <code>DefaultOAuth2AuthorizationRequestResolver</code> and <code>DefaultServerOAuth2AuthorizationRequestResolver</code>. Is there a way to either make those take my URLs or to make Spring Boot use my implementation instead?</p>