How to fix "401 Unauthorized" error

The most common cause for this error is an incorrect Client Secret.

The first thing you should check in this case is if the Client Secret you have provided actually belongs to the defined Client ID.

If it seems to be correct, you should also check if you have provided the Client Secret ID instead of the Client Secret Value.

You can do this by checking the uncensored part of your Client Secret in Email This Issue:

And see if it matches the beginning and end of the Client Secret ID:

If it does, please change it for the Client Secret Value. If it appears censored in Azure, you must create a new Client Secret, as these values are only visible once.

Last updated