Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-8012

API user.checkAuthentication returns error when using an API token

XMLWordPrintable

    • Sprint 93 (Oct 2022), Sprint 94 (Nov 2022), Sprint 95 (Dec 2022), Sprint 96 (Jan 2023), Sprint 97 (Feb 2023), Sprint 98 (Mar 2023), Sprint 99 (Apr 2023)
    • 1

      Steps to reproduce:

      1. Generate an API token for a user
      2. Attempt to connect to the API user.checkAuthentication using the supplied token
      3. API returns an error

       

       

      Sending: {"jsonrpc": "2.0", "method": "user.checkAuthentication", "params": {"sessionid": "TRIMMED_VALID_USER_TOKEN"}, "id": 0}
      
      Response Body: {'jsonrpc': '2.0', 'error': {'code': -32602, 'message': 'Invalid params.', 'data': 'Invalid parameter "/sessionid": value is too long.'}, 'id': 0}

       

       

      User Token is valid for other API operations however.

       

      Expected:
      Data is returned as to weather or not the token is valid fore use.

            rdetlavs Reinis Detlavs (Inactive)
            redtux nelsonab
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: