In order to configure EWS OAuth configuration successfully, please follow the exact steps in the below link,
Note: For client secret, there would be a field called 'Value' as per the screenshot in the above link, only that should be used. In some cases, there would be another field next to Value as Secret ID, that is not supposed to be used.