Áú»¢¶Ä²©

This is the documentation page for an unsupported version of Áú»¢¶Ä²©.
Is this not what you were looking for? Switch to the current version or choose one from the drop-down menu.

user.checkAuthentication

³¢±ð¨ª°ù¨¢²õ

objektum user.checkAuthentication

Ez a m¨®dszer ellen?rzi ¨¦s meghosszabb¨ªtja a felhaszn¨¢l¨®i munkamenetet.

A user.checkAuthentication met¨®dus megh¨ªv¨¢sa alap¨¦rtelmez¨¦s szerint meghosszabb¨ªtja a felhaszn¨¢l¨®i munkamenetet.

±Ê²¹°ù²¹³¾¨¦³Ù±ð°ù±ð°ì

A m¨®dszer a k?vetkez? param¨¦tereket fogadja el.

±Ê²¹°ù²¹³¾¨¦³Ù±ð°ù °Õ¨ª±è³Ü²õ ³¢±ð¨ª°ù¨¢²õ
extend boolean Alap¨¦rtelmezett ¨¦rt¨¦k: "true". ?rt¨¦k¨¦nek "false"-ra ¨¢ll¨ªt¨¢sa lehet?v¨¦ teszi a munkamenet ellen?rz¨¦s¨¦t az ¨¦lettartam meghosszabb¨ªt¨¢sa n¨¦lk¨¹l. A Áú»¢¶Ä²© 4.0.
sessionid string Felhaszn¨¢l¨®i munkamenet azonos¨ªt¨®ja.

Visszat¨¦r¨¦si ¨¦rt¨¦kek

(object) A felhaszn¨¢l¨®r¨®l inform¨¢ci¨®kat tartalmaz¨® objektumot ad vissza.

Examples

Request:

{
           "jsonrpc": "2.0",
           "method": "user.checkAuthentication",
           "params": {
               "sessionid": "673b8ba11562a35da902c66cf5c23fa2"
           },
           "id": 1
       }

Response:

{
           "jsonrpc": "2.0",
           "result": {
               "userid": "1",
               "username": "Admin",
               "name": "Áú»¢¶Ä²©",
               "surname": "Administrator",
               "url": "",
               "autologin": "1",
               "autologout": "0",
               "lang": "ru_RU",
               "refresh": "0",
               "theme": "default",
               "attempt_failed": "0",
               "attempt_ip": "127.0.0.1",
               "attempt_clock": "1355919038",
               "rows_per_page": "50",
               "timezone": "Europe/Riga",
               "roleid": "3",
               "type": 3,
               "sessionid": "673b8ba11562a35da902c66cf5c23fa2"
               "debug_mode": 0,
               "userip": "127.0.0.1",
               "gui_access": 0
           },
           "id": 1
       }

Response is similar to User.login call response with "userData" parameter set to true (the difference is that user data is retrieved by session id and not by username / password).

Check authentication using authentication token

Check and prolong a user session using the user authentication token, and return additional information about the user.

Request:

{
           "jsonrpc": "2.0",
           "method": "user.checkAuthentication",
           "params": {
               "sessionid": "673b8ba11562a35da902c66cf5c23fa2"
           },
           "id": 1
       }

Response:

{
           "jsonrpc": "2.0",
           "result": {
               "userid": "1",
               "username": "Admin",
               "name": "Áú»¢¶Ä²©",
               "surname": "Administrator",
               "url": "",
               "autologin": "1",
               "autologout": "0",
               "lang": "ru_RU",
               "refresh": "0",
               "theme": "default",
               "attempt_failed": "0",
               "attempt_ip": "127.0.0.1",
               "attempt_clock": "1355919038",
               "rows_per_page": "50",
               "timezone": "Europe/Riga",
               "roleid": "3",
               "userdirectoryid": "0",
               "ts_provisioned": "0",
               "type": 3,
               "userip": "127.0.0.1",
               "debug_mode": 0,
               "gui_access": "0",
               "deprovisioned": false,
               "auth_type": 0,
               "sessionid": "673b8ba11562a35da902c66cf5c23fa2",
               "secret": "0e329b933e46984e49a5c1051ecd0751"
           },
           "id": 1
       }
Check authentication using API token

Check a user session using the user API token, and return additional information about the user.

Request:

{
           "jsonrpc": "2.0",
           "method": "user.checkAuthentication",
           "params": {
               "token": "00aff470e07c12d707e50d98cfe39edef9e6ec349c14728dbdfbc8ddc5ea3eae"
           },
           "id": 1
       }

Response:

{
           "jsonrpc": "2.0",
           "result": {
               "userid": "1",
               "username": "Admin",
               "name": "Áú»¢¶Ä²©",
               "surname": "Administrator",
               "url": "",
               "autologin": "1",
               "autologout": "0",
               "lang": "ru_RU",
               "refresh": "0",
               "theme": "default",
               "attempt_failed": "0",
               "attempt_ip": "127.0.0.1",
               "attempt_clock": "1355919338",
               "rows_per_page": "50",
               "timezone": "Europe/Riga",
               "roleid": "3",
               "userdirectoryid": "0",
               "ts_provisioned": "0",
               "type": 3,
               "userip": "127.0.0.1",
               "debug_mode": 0,
               "gui_access": "1",
               "deprovisioned": false,
               "auth_type": 0
           },
           "id": 1
       }

¹ó´Ç°ù°ù¨¢²õ

CUser::checkAuthentication() in ui/include/classes/api/services/CUser.php.