You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2021-02-08 16:59:23

tishihtzu
Member
Registered: 2021-01-26
Posts: 1

How to successfully InitSession?

I am having some issues trying to initiate a session.

I try:

curl -X GET \
  https://glpi.example.com/apirest.php/initSession \
  -H 'App-Token: secret' \
  -H 'Authorization: user_token secret' \
  -H 'Content-Type: application/json' 

I get:
401 Unauthorized

[
    "ERROR_GLPI_LOGIN_USER_TOKEN",
    "parameter user_token seems invalid"
]

Settings:
user_token: FluxBB bbcode test
Api-Token: FluxBB bbcode test

Any idea what I might be doing wrong?

Tnx,
Jon

Offline

#2 2021-02-11 14:16:30

carlosbmc
Member
Registered: 2016-12-01
Posts: 161

Re: How to successfully InitSession?

Same error:

https://xxxxxx/glpi/apirest.php/initSession?user_token=xxxxxxx&app_token=xxxxxxxx

returns

["ERROR_GLPI_LOGIN_USER_TOKEN","el parámetro user_token parece incorrecto"]


GLPI 9.5.2;; FusionInventory: 9.2+1.0;; GLPI Modifications 1.1.4;; Notifications 1.1.9;;  Dashboard 0.8.8;; PHP 7.3.33

Offline

#3 2021-02-11 14:23:51

carlosbmc
Member
Registered: 2016-12-01
Posts: 161

Re: How to successfully InitSession?

Autoresponse:  have to check "Enable login with external token "


GLPI 9.5.2;; FusionInventory: 9.2+1.0;; GLPI Modifications 1.1.4;; Notifications 1.1.9;;  Dashboard 0.8.8;; PHP 7.3.33

Offline

Board footer

Powered by FluxBB