title: ASP.NET Core 2 - How to remove scaffolded routes?
body: <p>ASP.NET Core 2.x includes some pre-made scaffolded routes, like the login page, settings, etc.  I am working on something that only has OAuth login buttons, and no settings.  This means that I don't want users to be able to register with an email, and I don't want any settings pages.</p>
  
  <p>I can remove the link to things like the Settings page , however the routes still exist and can be accessed by typing them in.  How do I <strong>disable</strong> these routes so they are completely inaccessible?</p>
  
  <p>Basically everything under the <code>/Identity/Account/*</code> route, except for the login page should not be available.</p>