1. marcelganczak's Avatar
    I'm trying to integrate my app with OneDrive. I'm following this tutorial:
    docs.microsoft.com/en-us/onedrive/developer/rest-api/getting-started/?view=odsp-graph-online For oauth I'm using Azure AD v2.0 endpoint.

    To get the access token, I'm calling login.microsoftonline.com/common/oauth2/v2.0/token and it successfully answers with some json:

    { token_type: 'Bearer',
    scope: 'onedrive.readwrite',
    expires_in: 3600,
    ext_expires_in: 3600,
    access_token: '...',
    refresh_token: '...' }

    When using the access_token that I received to call graph.microsoft.com/v2.0/me/drive/root/delta, I get this response:

    {
    "error": {
    "code": "InvalidAuthenticationToken",
    "message": "CompactToken parsing failed with error code: 8004920A",
    "innerError": {
    "request-id": "5eda75b0-c2d5-467f-a728-8006490c00b2",
    "date": "2019-08-19T15:56:10"
    }
    }
    }

    This error is pretty cryptic and for the life of me I can't work out why that token won't work with this endpoint. Can someone help?
    08-19-2019 11:01 AM

Similar Threads

  1. Microsoft announces Night Ops Camo and Sport Blue Xbox One controllers
    By WindowsCentral.com in forum Windows Central News Discussion
    Replies: 0
    Last Post: 08-19-2019, 10:42 AM
  2. Microsoft contractors reportedly paid $12-$14 per hour to transcribe audio
    By WindowsCentral.com in forum Windows Central News Discussion
    Replies: 0
    Last Post: 08-19-2019, 10:30 AM
  3. Try not to scream when you’re watching Blair Witch’s new gameplay trailer
    By WindowsCentral.com in forum Windows Central News Discussion
    Replies: 0
    Last Post: 08-19-2019, 10:11 AM
  4. This Microsoft Azure certification training bundle is only $29 right now
    By WindowsCentral.com in forum Windows Central News Discussion
    Replies: 0
    Last Post: 08-18-2019, 10:42 AM
  5. Use the refurb Jabra Elite Active 65t down to $100 at the gym
    By WindowsCentral.com in forum Windows Central News Discussion
    Replies: 0
    Last Post: 08-18-2019, 07:00 AM
LINK TO POST COPIED TO CLIPBOARD