Skip to main content
Solved

how activate full debug for openid connect

  • October 24, 2022
  • 3 replies
  • 791 views

Forum|alt.badge.img+3

Hi the Watch Community.

I would like to know how activate full debug on the openid actions.

I have alreday changed the configuration through the web interface : “ You can enable Authentication debug through the Administration > Parameters > Debug menu to understand authentication failures and improve your setup. “

But i have problem with  “authorization key” in order to give authorizations for my openid user.

For examphe in the php file : /usr/share/centreon/src/Core/Security/Application/UseCase/LoginOpenIdSession/LoginOpenIdSession.php

In the function : “getUserClaimsFromIdTokenOrUserInformation”

By default no log about the claims interpretation.

How activate it ?

Thanks for your help

 

 

 

 

Best answer by lpinsivy

Hi @centreon-watcher ,

If you are using Centreon version < 22.04, you have to enable authentication debug using “Administration > Parameters > Debug” and enable “Authentication debug” option, then logs will be present into /var/log/centreon/login.log file.

If your version is >= 22.04, you have to enable debug in /usr/share/centreon/.env.local.php and complete PHP array tab with (don't forget to add a comma at the end of the previous line):

    'APP_DEBUG' => true,
'DEBUG_LEVEL' => 100

Then logs will be available in /var/log/centreon/centreon-web.log

Regards,

3 replies

lpinsivy
Centreonian
Forum|alt.badge.img+21
  • Centreonian
  • Answer
  • October 24, 2022

Hi @centreon-watcher ,

If you are using Centreon version < 22.04, you have to enable authentication debug using “Administration > Parameters > Debug” and enable “Authentication debug” option, then logs will be present into /var/log/centreon/login.log file.

If your version is >= 22.04, you have to enable debug in /usr/share/centreon/.env.local.php and complete PHP array tab with (don't forget to add a comma at the end of the previous line):

    'APP_DEBUG' => true,
'DEBUG_LEVEL' => 100

Then logs will be available in /var/log/centreon/centreon-web.log

Regards,


Forum|alt.badge.img+3

hi @Laurent 

Thank a lot for your reactivity. I have justed tested and i can see the logs now.

It can be helpful for other members of the watch community

Regards.

 


Forum|alt.badge.img+3