Hi all,
I configured the new icinga-sso-web module to use our Authentik provider. Here is the config:
After logging in and going through the OIDC flow, I end up with this error:
Fatal error: Uncaught ErrorException: Uncaught ErrorException: session_name(): Session name cannot be changed when a session is active in /usr/share/php/Icinga/Web/Session/Php72Session.php:22 Stack trace: #0 [internal function]: Icinga\Application\ApplicationBootstrap->{closure:Icinga\Application\ApplicationBootstrap::setupErrorHandling():578}() #1 /usr/share/php/Icinga/Web/Session/Php72Session.php(22): session_name() #2 /usr/share/php/Icinga/Web/Session/PhpSession.php(169): Icinga\Web\Session\Php72Session->open() #3 /usr/share/php/Icinga/Web/Controller/ActionController.php(584): Icinga\Web\Session\PhpSession->write() #4 /usr/share/php/Icinga/Web/Controller/ActionController.php(530): Icinga\Web\Controller\ActionController->shutdownSession() #5 /usr/share/icinga-php/vendor/vendor/icinga/zf1/library/Zend/Controller/Action.php(533): Icinga\Web\Controller\ActionController->postDispatch() #6 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(78): Zend_Controller_Action->dispatch() #7 /usr/share/icinga-php/vendor/vendor/icinga/zf1/library/Zend/Controller/Front.php(954): Icinga\Web\Controller\Dispatcher->dispatch() #8 /usr/share/php/Icinga/Application/Web.php(255): Zend_Controller_Front->dispatch() #9 /usr/share/php/Icinga/Application/webrouter.php(107): Icinga\Application\Web->dispatch() #10 /usr/share/icingaweb2/public/index.php(4): require_once('...') #11 {main} Next Zend_Controller_Exception: session_name(): Session name cannot be changed when a session is active#0 [internal function]: Icinga\Application\ApplicationBootstrap->{closure:Icinga\Application\ApplicationBootstrap::setupErrorHandling():578}() #1 /usr/share/php/Icinga/Web/Session/Php72Session.php(22): session_name() #2 /usr/share/php/Icinga/Web/Session/PhpSession.php(169): Icinga\Web\Session\Php72Session->open() #3 /usr/share/php/Icinga/Web/Controller/ActionController.php(584): Icinga\Web\Session\PhpSession->write() #4 /usr/share/php/Icinga/Web/Controller/ActionController.php(530): Icinga\Web\Controller\ActionController->shutdownSession() #5 /usr/share/icinga-php/vendor/vendor/icinga/zf1/library/Zend/Controller/Action.php(533): Icinga\Web\Controller\ActionController->postDispatch() #6 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(78): Zend_Controller_Action->dispatch() #7 /usr/share/icinga-php/vendor/vendor/icinga/zf1/library/Zend/Controller/Front.php(954): Icinga\Web\Controller\Dispatcher->dispatch() #8 /usr/share/php/Icinga/Application/Web.php(255): Zend_Controller_Front->dispatch() #9 /usr/share/php/Icinga/Application/webrouter.php(107): Icinga\Application\Web->dispatch() #10 /usr/share/icingaweb2/public/index.php(4): require_once('...') #11 {main} in /usr/share/icinga-php/vendor/vendor/icinga/zf1/library/Zend/Controller/Plugin/Broker.php:335 Stack trace: #0 /usr/share/icinga-php/vendor/vendor/icinga/zf1/library/Zend/Controller/Front.php(965): Zend_Controller_Plugin_Broker->postDispatch() #1 /usr/share/php/Icinga/Application/Web.php(255): Zend_Controller_Front->dispatch() #2 /usr/share/php/Icinga/Application/webrouter.php(107): Icinga\Application\Web->dispatch() #3 /usr/share/icingaweb2/public/index.php(4): require_once('...') #4 {main} thrown in /usr/share/icinga-php/vendor/vendor/icinga/zf1/library/Zend/Controller/Plugin/Broker.php:335 Stack trace: #0 [internal function]: Icinga\Application\Web->{closure:Icinga\Application\Web::setupFatalErrorHandling():382}() #1 {main} Next Zend_Controller_Exception: Uncaught ErrorException: session_name(): Session name cannot be changed when a session is active in /usr/share/php/Icinga/Web/Session/Php72Session.php:22 Stack trace: #0 [internal function]: Icinga\Application\ApplicationBootstrap->{closure:Icinga\Application\ApplicationBootstrap::setupErrorHandling():578}() #1 /usr/share/php/Icinga/Web/Session/Php72Session.php(22): session_name() #2 /usr/share/php/Icinga/Web/Session/PhpSession.php(169): Icinga\Web\Session\Php72Session->open() #3 /usr/share/php/Icinga/Web/Controller/ActionController.php(584): Icinga\Web\Session\PhpSession->write() #4 /usr/share/php/Icinga/Web/Controller/ActionController.php(530): Icinga\Web\Controller\ActionController->shutdownSession() #5 /usr/share/icinga-php/vendor/vendor/icinga/zf1/library/Zend/Controller/Action.php(533): Icinga\Web\Controller\ActionController->postDispatch() #6 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(78): Zend_Controller_Action->dispatch() #7 /usr/share/icinga-php/vendor/vendor/icinga/zf1/library/Zend/Controller/Front.php(954): Icinga\Web\Controller\Dispatcher->dispatch() #8 /usr/share/php/Icinga/Application/Web.php(255): Zend_Controller_Front->dispatch() #9 /usr/share/php/Icinga/Application/webrouter.php(107): Icinga\Application\Web->dispatch() #10 /usr/share/icingaweb2/public/index.php(4): require_once('...') #11 {main} Next Zend_Controller_Exception: session_name(): Session name cannot be changed when a session is active#0 [internal function]: Icinga\Application\ApplicationBootstrap->{closure:Icinga\Application\ApplicationBootstrap::setupErrorHandling():578}() #1 /usr/share/php/Icinga/Web/Session/Php72Session.php(22): session_name() #2 /usr/share/php/Icinga/Web/Session/PhpSession.php(169): Icinga\Web\Session\Php72Session->open() #3 /usr/share/php/Icinga/Web/Controller/ActionController.php(584): Icinga\Web\Session\PhpSession->write() #4 /usr/share/php/Icinga/Web/Controller/ActionController.php(530): Icinga\Web\Controller\ActionController->shutdownSession() #5 /usr/share/icinga-php/vendor/vendor/icinga/zf1/library/Zend/Controller/Action.php(533): Icinga\Web\Controller\ActionController->postDispatch() #6 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(78): Zend_Controller_Action->dispatch() #7 /usr/share/icinga-php/vendor/vendor/icinga/zf1/library/Zend/Controller/Front.php(954): Icinga\Web\Controller\Dispatcher->dispatch() #8 /usr/share/php/Icinga/Application/Web.php(255): Zend_Controller_Front->dispatch() #9 /usr/share/php/Icinga/Application/webrouter.php(107): Icinga\Application\Web->dispatch() #10 /usr/share/icingaweb2/public/index.php(4): require_once('...') #11 {main} in /usr/share/icinga-php/vendor/vendor/icinga/zf1/library/Zend/Controller/Plugin/Broker.php:335 Stack trace: #0 /usr/share/icinga-php/vendor/vendor/icinga/zf1/library/Zend/Controller/Front.php(965): Zend_Controller_Plugin_Broker->postDispatch() #1 /usr/share/php/Icinga/Application/Web.php(255): Zend_Controller_Front->dispatch() #2 /usr/share/php/Icinga/Application/webrouter.php(107): Icinga\Application\Web->dispatch() #3 /usr/share/icingaweb2/public/index.php(4): require_once('...') #4 {main} thrown#0 [internal function]: Icinga\Application\Web->{closure:Icinga\Application\Web::setupFatalErrorHandling():382}() #1 {main} in /usr/share/icinga-php/vendor/vendor/icinga/zf1/library/Zend/Controller/Plugin/Broker.php:262 Stack trace: #0 /usr/share/icinga-php/vendor/vendor/icinga/zf1/library/Zend/Controller/Front.php(923): Zend_Controller_Plugin_Broker->routeShutdown() #1 /usr/share/php/Icinga/Application/Web.php(399): Zend_Controller_Front->dispatch() #2 [internal function]: Icinga\Application\Web->{closure:Icinga\Application\Web::setupFatalErrorHandling():382}() #3 {main} thrown in /usr/share/icinga-php/vendor/vendor/icinga/zf1/library/Zend/Controller/Plugin/Broker.php on line 262
Any idea?
Edit: I logged out of all previous sessions and also tested it in a private window to rule out any local storage / session / cookie issues.
Edit2: I think I just found the issue: I had the wrong REDIRECT URI, since I was migrating from the RISE-GmbH module. Still, I think having an incorrect redirect URI shouldnt lead to a plain php error message.
Hi all,
I configured the new icinga-sso-web module to use our Authentik provider. Here is the config:
After logging in and going through the OIDC flow, I end up with this error:
Any idea?
Edit: I logged out of all previous sessions and also tested it in a private window to rule out any local storage / session / cookie issues.
Edit2: I think I just found the issue: I had the wrong REDIRECT URI, since I was migrating from the RISE-GmbH module. Still, I think having an incorrect redirect URI shouldnt lead to a plain php error message.