Announcement

Collapse
No announcement yet.

API Always returning Unauthorized

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • API Always returning Unauthorized

    My , dozens times tried, requests :

    - Request *AUTH* :

    curl -s -k -X POST -d "username=myuser&password=mypassword" https://mycentreonserver.com/centreo...n=authenticate

    -====> Authenticated returned token: "NWMyY2IwMGNkMTI2MDkuMTMzNjkwODk="
    - Peticion *LIST* :

    curl -H 'Content-Type: application/json' -H 'centreon-auth-token: "NWMyY2IwMGNkMTI2MDkuMTMzNjkwODk="' https://mycentreonserver.com/centreo...ts&action=list

    -====> "Unauthorized"


    I've checked both checkboxes "Reach API Configuration" and "Reach API realtime" at my Centreon >> Configurations >> Contacts Users <myuser> >> Centreon Authentication

    Authentication source is LDAP.

    Any idea please ? I've tested this many times, googled a lot and all I found is an old "change centreon_auth_token by centreon-auth-token" ...nothing else
Working...
X