Manually expire OAuth token created with Shrefile API

  • 1
  • Question
  • Updated 4 months ago
Hi,

I have created an OAuth2Token using username,password,clientId and client secret using ShareFile API. From the response, expiry time of the token (expires_in) is seems like 28800 seconds (8 hour). Is there is any way to manually expire the token after the use of token?

Thanks,
Niyas
Photo of Muhammed Niyas

Muhammed Niyas

  • 25 Posts
  • 2 Reply Likes

Posted 4 months ago

  • 1
Photo of Michael Berrier

Michael Berrier, Employee

  • 122 Posts
  • 24 Reply Likes
Muhammad,

Sorry for the delayed reply.

You should be able to manually expire a token by calling DELETE sf/v3/Sessions and using that token in the Authorization header.

http://api.sharefile.com/rest/docs/resource.aspx?name=Sessions

Michael Berrier
ShareFile Engineering
(Edited)