Error when retrieve access token using Fiddler RRS feed

  • Question

  • Hi,
    I try to retrieve Access Token using Fiddler (to understand what is the right call to make to server).
    I selected "Request Builder" tab and I used:

    1) Http Method: POST
    2) Url: https://datamarket.accesscontrol.windows.net/v2/OAuth2-13
    3) Http version: 1.2
    4) Request Body: grant_type=client_credentials&client_id={client_id}&client_secret={client_secret}&scope=http://api.microsofttranslator.com

    where client_id and client_secret are the values retrieve in the page https://datamarket.azure.com/developer/applications.

    When I send the request, I receive HTTP 400 result and this response:

    {"error":"invalid_request","error_description":"ACS90004: The request is not properly formatted. \r\nTrace ID: 68534b1c-214d-4f2a-863f-67fcc5d4577d\r\nTimestamp: 2011-11-29 08:01:07Z"}

    What's the problem? It is the same error that I received when I try to retrieve Access Token by code.
    Is it a server problem?


    Tuesday, November 29, 2011 8:04 AM

All replies

  • Hi Max,

    please try to UrlEncode() the client secret when requesting the access token. Our sample was missing that step until today. The problem happens only with client secrets containing a URL reserved character.

    Let us know if this helps,

    Chris Wendt
    Microsoft Translator

    Wednesday, November 30, 2011 3:12 AM
  • Hi, It works!!
    Sorry but was a my mistake!!

    Thank you so much.


    Wednesday, November 30, 2011 8:28 AM