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

Details

    • Team A
    • Sprint 93 (Oct 2022), Sprint 94 (Nov 2022), Sprint 95 (Dec 2022)
    • 1

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              rdetlavs Reinis Detlavs
              redtux nelsonab
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated: