AADSTS50012: Invalid client secret is provided when moving from a Test App to Production : <p>I have two applications registered under the Azure Portal: a test version and a production version. My test App works fine with the Client Id and ClientSecret/AppKey that I got from the test app's detail from Azure Portal. However when I move to the production one as I replace the ClientId and Secret values with the one specified by the production App I registered, I suddenly get an error: </p>

<p>AdalServiceException: AADSTS70002: Error validating credentials. AADSTS50012: Invalid client secret is provided</p>

<p>But I'm fairly sure that my client secret is correct as I just copied and pasted from the Portal. Is there any solutions to this?</p>
