none
Can't get Access Token for Microsoft Text Translator API

    Question

  • Hello, 

    I am trying to get access token throught the following request: 

    POST /common/oauth2/v2.0/token HTTP/1.1
    Host: login.microsoftonline.com
    Content-Type: application/x-www-form-urlencoded
    Cache-Control: no-cache
    Postman-Token: b4c4a61f-db3b-5d21-8c92-5d4adae886f8

    grant_type=client_credentials&client_id=443db74f-0886-4ec9-97f2-21da79d9cee6&client_secret=sdnTDx2R%2BTZrZYIpIbBzDS%2B3tnHsMY1BzJ3TszJ6eCo%3D&scope=https%3A%2F%2Fgraph.microsoft.com%2F.default

    Response: 

    {
      "error": "unauthorized_client",
      "error_description": "AADSTS70001: Application with identifier '443db74f-0886-4ec9-97f2-21da79d9cee6' was not found in the directory microsoft.com\r\nTrace ID: aecc22d6-c044-4ead-8d1b-a2c375c7c113\r\nCorrelation ID: 1498b3bd-7281-46d9-9878-bf7fc64737ab\r\nTimestamp: 2017-03-07 16:04:41Z",
      "error_codes": [
        70001
      ],
      "timestamp": "2017-03-07 16:04:41Z",
      "trace_id": "aecc22d6-c044-4ead-8d1b-a2c375c7c113",
      "correlation_id": "1498b3bd-7281-46d9-9878-bf7fc64737ab"
    }

    I have registered client_id / client_secret following the steps included on that page:

    docs.microsoft.com/en-us/azure/active-directory/active-directory-identityprotection-graph-getting-started

    s21.postimg.org/ggik86pfb/Chaves_Microsoft_Azure.png

    Can you help solving that issue?

    Tuesday, March 07, 2017 4:14 PM

All replies