I have a web app where I am trying to implement a SSO solution with windows azure AD OAuth flow, but I am getting a generic "400 Bad Request Error" on the second OAuth request for an Access Token. I have checked and rechecked my request and it appears correct as much as I can tell:
POST https://login.windows.net/common/oauth2/token
HEADERS
Host:login.windows.net
Content-type:application/x-www-form-urlencoded
User-Agent: wTrack/.001
Date: Thu, 21 May 2015 02:48:43 GMT
BODY
client_id=1ad9f025-dfaf-4cb7-a9ff-29ea619bab44&
client_secret=<secret>&
code=<code>&
redirect_uri=https%3A%2F%2Fwtrack.dev%2Flogin%2Fmicrosoft&
grant_type=authorization_code
I have been looking at this for quite some time. Any help that could be provided would be greatly appreciated.
CorrelationID: 3e38d957-ab89-4c6d-b0ce-42c1800d99fb