Solved

how activate full debug for openid connect

  • 24 October 2022
  • 3 replies
  • 547 views

Badge +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

 

 

 

 

icon

Best answer by Laurent 24 October 2022, 12:32

View original

3 replies

Userlevel 6
Badge +18

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,

Badge +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.

 

Badge +3

i should have read this post : https://thewatch.centreon.com/product-how-to-21/how-to-activate-applicative-logs-990

Sorry

Reply