• Register

revokeUserApplication

Description

Revokes all tokens for the application for the specified user.

Syntax

oauth2.revokeUserApplication (service_key, client, user_context)

Parameters

Parameter Type Description
service_key string The id of the OAuth 2.0 protected service definition
client client object A client object containing at least the client_id
user_context string

Provider-defined user context identifier

Return Value

Boolean

Errors

Standard JSON-RPC errors.

Sample Requests and Responses

Sample Request (Ordered Parameters)

{
      "method": "oauth2.revokeUserApplication", 
      "params": [
            "rmeqcgpw3zu2y47y9bs8vs2h", 
            {
                  "client_id":"r3qwqesr223dfdasd"
            }, 
            "qrqefasdfjp98"
      ], 
      "id":1
}

Sample Request (Named Parameters)

{
   "jsonrpc":"2.0",
   "method":"oauth2.revokeUserApplication",
   "params":[
      "service_key":"rmeqcgpw3zu2y47y9bs8vs2h",
      "client":
      {
         "client_id":"r3qwqesr223dfdasd"
      },
      "user_context":"qrqefasdfjp98"
   ],
   "id":1
}

Sample Response

 

{
   "result":true,
   "error":null,
   "id":1
}

Docs Navigation