[EWS] [OAUTH] Cannot get access token RRS feed

  • Question

  • I am attempting to use OAuth2 to access an Exchange mailbox, but I'm having trouble with the OAuth protocol. I'm not using a library, just making direct http calls (using libcurl). Using documentation found here:

    I have successfully obtained the authorization code, now I'm trying to use that to obtain the access token.  The response in the returned json is "invalid grant, Transmission data parser failure: Authorization Code is malformed or invalid.". Below is the data that I'm posting (the password is changed):

    Any ideas on why I'm getting this error?

    Jeffrey McKay

    Tuesday, August 8, 2017 11:53 PM