I noticed in Microsoft Azure/Entra that the client secret associated with my app registration was set expire within two days, so I decided to perform a quick update. I have created the new client secret in Microsoft Azure and pasted it into my project in Visual Studio 2022 multiple times, but I am continually receiving the “AADSTS7000215: Invalid client secret provided” error message when attempting to open the project in debug mode.
My project is an MVC project using AspNet 9.0 with an associated appsettings.json file containing the configuration data (i.e. tenant ID, client ID, client secret, etc). All was working well until I changed the client secret and, yes, I have made certain to copy/paste the client secret and not its associated ID.
I have scoured the internet for answers, but I can’t seem to find a workable solution. At this point, all I know to do is simply copy the new client secret value into the appsettings.json file and rebuild the project.
Please let me know what I might be overlooking. Any assistance is greatly appreciated.