nmarus / node-ews

A simple JSON wrapper for the Exchange Web Services (EWS) SOAP API.
MIT License
116 stars 52 forks source link

question about oauth token #96

Closed christiannguyen closed 5 years ago

christiannguyen commented 6 years ago

Does anyone know how to get the oauth token for bearer auth? I followed this https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-v2-tokens to get a token but for some reason i always get an 401 unauthorized error. I'm pretty sure the token and username is correct. Am I using the wrong access token?