0

We have integrate Office Online with our application and implement necessary rest end points in our application which are defined in Office Online documentation WOPI REST Documentation and all working fine.

But problem is that when Access token getting timeout from office online then it will not call any rest end point.

Is there any rest end point which intimate our application that your session getting timed out for current document?

Ravi
  • 38
  • 7

1 Answers1

0

Are you setting the access_token_ttl? Are you setting it correctly? It is represented as the number of milliseconds since January 1, 1970 UTC. You may also set it to 0 to see whether the problem persists.

The only endpoint for refreshing tokens is GetNewAccessToken which is not required for most of the devices. In most cases Office Online will simply prompt users to save and refresh their sessions if the access token for their session is close to expiring.

rocky
  • 7,506
  • 3
  • 33
  • 48
  • Yes, i already set access_token_ttl and it give me prompt when session is close to expiring. And once session expired then it again give session expired message. But how my application identify that for this document session was expired? – Ravi Mar 14 '18 at 06:16
  • GetNewAccessToken this end point is used for Android or IOS application but our application is web based and we have pass access_token from our side. – Ravi Mar 14 '18 at 06:20
  • @rocky Facing Same issue , like when I click on Refresh button on Wopi Client, It does not give back any call – Rahul Rabhadiya Mar 14 '18 at 06:24
  • As I said, there is no general concept of an endpoint for refreshing tokens. I suggest you set the token ttl to a longer period (e.g. several hours) and scope the access token to a single user and resource combination. – rocky Mar 14 '18 at 12:30