You need to sign in to do that
Don't have an account?
Developer Base
OAuth mass revoke - POST request
Hello,
my org has about 40 users that I need to log out from their applications. This means that I need to revoke all their OAuth connections:
There are about 120 connections to revoke. I can not do that manually, it would take too much time. According to documentation, I can make a Post request to revoke an OAuth connection:
https://developer.salesforce.com/docs/atlas.en-us.mobile_sdk.meta/mobile_sdk/oauth_revoking_tokens.htm
I managed to obtain all the OAuth ids, but how do I now make a POST callout according to the documentation to delete them all? Could anyone give me a sample code? This would really help. Thanks.
my org has about 40 users that I need to log out from their applications. This means that I need to revoke all their OAuth connections:
There are about 120 connections to revoke. I can not do that manually, it would take too much time. According to documentation, I can make a Post request to revoke an OAuth connection:
https://developer.salesforce.com/docs/atlas.en-us.mobile_sdk.meta/mobile_sdk/oauth_revoking_tokens.htm
I managed to obtain all the OAuth ids, but how do I now make a POST callout according to the documentation to delete them all? Could anyone give me a sample code? This would really help. Thanks.
https://help.salesforce.com/articleView?id=sf.remoteaccess_revoke_token.htm&type=5
Reference:
https://salesforce.stackexchange.com/questions/177498/how-can-i-revoke-all-oauth-tokens-for-a-single-user
Hope this helps...
Thanks,
the first link you posted is the same link that was posted by me.
The second link does not help either since I need to write the code for the POST callout.