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:
AdalServiceException: AADSTS70002: Error validating credentials. AADSTS50012: Invalid client secret is provided
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?
Enables authentication to Azure Active Directory using a client secret that was generated for an App Registration.
Encode your secret ( e.g. replace +
by %2B
, =
by %3D
etc)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With