function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
tjn11tjn11 

Logout from salesforce

I currently have a c# app that logs into salesforce via a POST webrequest with the following url

 

https://login.salesforce.com/services/oauth2/token?grant_type=password + clientid + clientsecret + username + password

 

I get the instance url and access_token from the response then use these to make another webrequest to a APEX REST API service that I wrote. all that is working great.

 

My question is: when i'm done doing the above, should I be performing some type of logout? if so, I can't find what to do.

 

Thanks!

 

 

 

 

 

 

 

SuperfellSuperfell

The access token will expire after some period of inactivity, there's no particular need to explictly invalidate it.