If you’re doing a Sitecore upgrade to 9.1 which introduces the new Sitecore Identity server amongst other things, don’t forget that the Sitecore Identity server needs some configuration done as well.
The scenario is that you’ve created a brand new Sitecore 9.1 scaled instance in azure. As part of your upgrade process you’ve updated your core, master, web databases and attached those to the new Sitecore 9.1 instance you’ve built and try to login in.
The Sitecore Identity server doesn’t know about your upgraded core database and all the users and roles it contains. Easy fix.
Use kudo to head on over to the Sitecore Identity App Service. At the root head to “site\wwwroot\Config\production” and find this file.
Sitecore.IdentityServer.Host.xml
Make sure you update the ConnectionString node with the connection string to your upgraded Core database.
Once you do that, you’ll be able to login with all your previous users and roles.