RADIUSdesk

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
user_guide:chilli:coova_json [2021/02/04 08:57] – [logon] adminuser_guide:chilli:coova_json [2021/02/04 09:07] (current) – [logoff] admin
Line 182: Line 182:
  
  
-==== llogoff ====+==== logoff ==== 
 +  * The last JSON end point is **logoff** 
 +  * Here is the call and the results 
 +  * http://10.1.0.1:3990/json/logoff?callback=jQuery331012987580313312852_1612418453858&_=1612418453865 
 +  * Alternative 
 + 
 +<code javascript> 
 +
 + "GET":
 + "scheme": "http", 
 + "host": "10.1.0.1:3990", 
 + "filename": "/json/logon", 
 + "query":
 + "callback": "jQuery331036884032348716045_1612421095535", 
 + "username": "click_to_connect@demo1", 
 + "password": "d24ae9fbf467e62642d1f4963016aca6", 
 + "_": "1612421095539" 
 + }, 
 + "remote":
 + "Address": "10.1.0.1:3990" 
 +
 +
 +
 +</code> 
 + 
 +  * Repsonse 
 +  
 +<code javascript> 
 +
 + "version": "1.0", 
 + "clientState": 0, 
 + "nasid": "ZA-VM1", 
 + "challenge": "efad131ebc031da777a4b7957eb58299", 
 + "session":
 + "sessionId": "161242107800000001", 
 + "userName": "click_to_connect@demo1", 
 + "startTime": 1612421102, 
 + "sessionTimeout": 180, 
 + "terminateTime": 0, 
 + "idleTimeout":
 + }, 
 + "accounting":
 + "sessionTime": 0, 
 + "idleTime": 0, 
 + "inputOctets": 0, 
 + "outputOctets": 0, 
 + "inputGigawords": 0, 
 + "outputGigawords": 0, 
 + "viewPoint": "client" 
 +
 +
 +</code> 
 + 
 +  * As you can see the reply is pretty much the same than logon but the **clientstate** is now **0** meaning it logged off fine. 
 +