[Microsoft Graph Connector] Fail to connect onedrive

Forge Component
(1)
Published on 2019-03-26 by Daniel Filipe
1 vote
Published on 2019-03-26 by Daniel Filipe

I can use the ms login connector reactive successfully and get its token. However, when I use "getDrives" action, it returns empty drive. Please advise. 

If I place the token in the "RGetDrive" API, the response data seems to be corrected. 

Thank in advance.


Hi Jessica,

Please provide the decoded token (use https://jwt.ms) so we can verify that you have the correct audience configured. You may anonymize the token to remove identifying information. 

Greetings,

Vincent

my token is

{
  "typ": "JWT",
  "nonce": "efhSpG7SyQm-lQmTLqqak3xZttKDBVKGM9XCJkPA0RQ",
  "alg": "RS256",
  "x5t": "CtTuhMJmD5M7DLdzD2v2x3QKSRY",
  "kid": "CtTuhMJmD5M7DLdzD2v2x3QKSRY"
}.{
  "aud": "https://graph.microsoft.com",
  "iss": "https://sts.windows.net/e2241847-46e0-48ba-ae3e-1e7dc301d192/",
  "iat": 1587644781,
  "nbf": 1587644781,
  "exp": 1587648681,
  "acct": 0,
  "acr": "1",
  "aio": "ASQA2/8PAAAAqlVwF/H7fIgILhU/5oyx3D2k9l/t9yZ/9OiqY6eNy+Q=",
  "amr": [
    "pwd"
  ],
  "app_displayname": "Microsoft Auth for OutSystems JL",
  "appid": "d39f7e6a-abf0-4a3e-9c56-b2776d873fcd",
  "appidacr": "1",
  "deviceid": "ed7a0ab4-b665-4026-bd96-ae546ad59f7b",
  "given_name": "xx",
  "ipaddr": "116.92.187.50",
  "name": "xx",
  "oid": "e00a05f6-aaa1-4685-b2b0-3045d4ebbed6",
  "platf": "3",
  "puid": "10032000B54BC8E3",
  "scp": "Files.Read Files.Read.All Files.Read.Selected Files.ReadWrite Files.ReadWrite.All Files.ReadWrite.AppFolder Files.ReadWrite.Selected Sites.Manage.All Sites.Read.All Sites.ReadWrite.All User.Read User.ReadBasic.All",
  "sub": "NyrxDbUMCMPrzabj54XoLpeY19FK2d-XcX5WoTpo8Ho",
  "tid": "e2241847-46e0-48ba-ae3e-1e7dc301d192",
  "unique_name": "email@xx.com.hk",
  "upn": "email@xx.com.hk",
  "uti": "b9lhUJ9rO0C9H-9QvlMVAA",
  "ver": "1.0",
  "xms_tcdt": 1509613900
}.[Signature] 


Hi Jessica, 

The audience is correct. We will need to look into this. I don't have a test app available at the moment so setting this up will take some time.

Greetings,

Vincent