Hi @RubenHN
Thank you for reaching Microsoft Q&A Forum!
When it comes to your error message - AADSTS7000215: Invalid client secret provided
, AADSTS7000215 is an error code that indicates that the client secret provided for authentication is invalid. Can you make sure that you're passing the client_secret
using a web app or web API, it shouldn't be used in a native app, because client_secrets
can't be reliably stored on devices.
For more info - Get access and refresh tokens.
If you are still running into same issue, please check the below steps:
- If you have added the correct client secret and it is still not working, you can try adding a new client secret to see if you still receive the error.
- Confirm that you are adding the client secret value and not the Secret ID.
- Make sure the URL is encoded properly. If the secret has special characters, they need to be URL encoded. If you don't encode the URL, one workaround is to regenerate a secret that mostly just has upper- and lower-case letters.
- Check that the expiration time is set to six, 12, or 18 months, as a few users have reported seeing issues setting the expiration time to 24 months.
Hope this helps. Do let us know if you any further queries by responding in the comments section..
Thanks,
Akhilesh.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.