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 2023-10-16 13:09:59

Gurutze
Member
Registered: 2023-10-16
Posts: 3

Gapp configuration problem

Hello,

I am trying to configure API in GLPI in order to connect with GAPP APP, but when I tried to access from the app, it appear an error that says "ERROR_SESSION_TOKEN_MISSING".

I am using version 10.0.10.

In the API client I have left the app_token empty.

Can somebody help me please?

Thank you

Offline

#2 2023-10-18 14:45:58

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,813
Website

Re: Gapp configuration problem

If you tried clearing the app_token from the API Client before GLPI 10.0.10, please make sure it is still empty. In some versions of 10.0.X, there was a bug that caused the app_token to be re-generated when the form was saved.


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

#3 2023-10-20 13:55:01

Gurutze
Member
Registered: 2023-10-16
Posts: 3

Re: Gapp configuration problem

Hello,

After verifying that the app_token is empty, I found that it is an Apache issue.
Since, in my case, I have contracted hosting, I have had to add a line to the .htaccess file:

SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1

This led me to the following error:

"Not Acceptable
An appropriate representation of the requested resource could not be found on this server."

The most likely cause is the server's security settings. If the server has "mod_security" enabled, the server error log should be reviewed.

Look for: "ModSecurity: Access denied with code 406" and identify the "id". Then, in the .htaccess file add:

SecRuleRemoveById id

Where "id" is the id found in the error log.

This is how I solved the problem

Thank you

Offline

Board footer

Powered by FluxBB