Skip to content

getCallbackTokenAsync failing for Outlook and OWA #5516

Open
@smurfy

Description

@smurfy

Your Environment

  • Platform [PC desktop, Mac, iOS, Office on the web]: Mac, Windows and OWA
  • Host [Excel, Word, PowerPoint, etc.]: Outloo
  • Office version number:
  • Operating System:Mac, Windows
  • Browser (if using Office on the web): Chrome, Safari and FF

Expected behavior

getCallbackTokenAsync() should work and get either a REST-capable or EWS-capable token.

Current behavior

Getting error:

{
"status": "failed",
"error": {
"name": "GenericTokenError",
"message": "An internal error has occurred.",
"code": 9018
}
}

and networktab:

{
"Items": [
{
"__type": "GetClientAccessTokenResponseMessage:#Exchange",
"Token": null,
"MessageText": "Token retrieval is not supported for this organization.",
"ResponseCode": "ErrorForbiddenClientAccessTokenRequest",
"ResponseClass": "Error"
},
{
"__type": "GetClientAccessTokenResponseMessage:#Exchange",
"Token": null,
"MessageText": "Token retrieval is not supported for this organization.",
"ResponseCode": "ErrorForbiddenClientAccessTokenRequest",
"ResponseClass": "Error"
}
]
}

Steps to reproduce

Call: Office.context.mailbox.getCallbackTokenAsync({ isRest: true }, result => { console.log(result); });

Link to live example(s)

NA

Provide additional details

NA

Context

Our add-in no longer works, since we use the rest api to get additional data aboutthe event

Useful logs

  • Console errors
  • Screenshots
  • Test file (if only happens on a particular file)

Probably similar to #4265 that issue also contains additional reports like we are seeing.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions