IDP: Allow "pvv.ntnu.no" or automagically redirect to www. #175

Open
opened 2025-01-19 22:29:25 +01:00 by felixalb · 0 comments
Owner

Signing into SimpleSAML on https://pvv.ntnu.no gives the following exception, instead of actually signing you in:

SimpleSAML\Error\Error: UNHANDLEDEXCEPTION
Backtrace:
2 src/SimpleSAML/Error/ExceptionHandler.php:32 (SimpleSAML\Error\ExceptionHandler::customExceptionHandler)
1 /nix/store/jprkaqmjhcj0f0flc1gr61ax2nnb64p8-pvv-nettsiden-0.0.1/share/php/pvv-nettsiden/vendor/symfony/error-handler/ErrorHandler.php:535 (Symfony\Component\ErrorHandler\ErrorHandler::handleException)
0 [builtin] (N/A)
Caused by: SimpleSAML\Error\Exception: URL not allowed: https://pvv.ntnu.no/
Backtrace:
6 src/SimpleSAML/Utils/HTTP.php:431 (SimpleSAML\Utils\HTTP::checkURLAllowed)
5 modules/saml/src/Controller/ServiceProvider.php:299 (SimpleSAML\Module\saml\Controller\ServiceProvider::assertionConsumerService)
4 /nix/store/jprkaqmjhcj0f0flc1gr61ax2nnb64p8-pvv-nettsiden-0.0.1/share/php/pvv-nettsiden/vendor/symfony/http-kernel/HttpKernel.php:181 (Symfony\Component\HttpKernel\HttpKernel::handleRaw)
3 /nix/store/jprkaqmjhcj0f0flc1gr61ax2nnb64p8-pvv-nettsiden-0.0.1/share/php/pvv-nettsiden/vendor/symfony/http-kernel/HttpKernel.php:76 (Symfony\Component\HttpKernel\HttpKernel::handle)
2 /nix/store/jprkaqmjhcj0f0flc1gr61ax2nnb64p8-pvv-nettsiden-0.0.1/share/php/pvv-nettsiden/vendor/symfony/http-kernel/Kernel.php:197 (Symfony\Component\HttpKernel\Kernel::handle)
1 src/SimpleSAML/Module.php:234 (SimpleSAML\Module::process)
0 public/module.php:17 (N/A)

Maybe we can add this domain to the IDPs allowlist or configure the web server to automagically redirect to www.pvv.ntnu.no?

Signing into SimpleSAML on https://pvv.ntnu.no gives the following exception, instead of actually signing you in: ``` SimpleSAML\Error\Error: UNHANDLEDEXCEPTION Backtrace: 2 src/SimpleSAML/Error/ExceptionHandler.php:32 (SimpleSAML\Error\ExceptionHandler::customExceptionHandler) 1 /nix/store/jprkaqmjhcj0f0flc1gr61ax2nnb64p8-pvv-nettsiden-0.0.1/share/php/pvv-nettsiden/vendor/symfony/error-handler/ErrorHandler.php:535 (Symfony\Component\ErrorHandler\ErrorHandler::handleException) 0 [builtin] (N/A) Caused by: SimpleSAML\Error\Exception: URL not allowed: https://pvv.ntnu.no/ Backtrace: 6 src/SimpleSAML/Utils/HTTP.php:431 (SimpleSAML\Utils\HTTP::checkURLAllowed) 5 modules/saml/src/Controller/ServiceProvider.php:299 (SimpleSAML\Module\saml\Controller\ServiceProvider::assertionConsumerService) 4 /nix/store/jprkaqmjhcj0f0flc1gr61ax2nnb64p8-pvv-nettsiden-0.0.1/share/php/pvv-nettsiden/vendor/symfony/http-kernel/HttpKernel.php:181 (Symfony\Component\HttpKernel\HttpKernel::handleRaw) 3 /nix/store/jprkaqmjhcj0f0flc1gr61ax2nnb64p8-pvv-nettsiden-0.0.1/share/php/pvv-nettsiden/vendor/symfony/http-kernel/HttpKernel.php:76 (Symfony\Component\HttpKernel\HttpKernel::handle) 2 /nix/store/jprkaqmjhcj0f0flc1gr61ax2nnb64p8-pvv-nettsiden-0.0.1/share/php/pvv-nettsiden/vendor/symfony/http-kernel/Kernel.php:197 (Symfony\Component\HttpKernel\Kernel::handle) 1 src/SimpleSAML/Module.php:234 (SimpleSAML\Module::process) 0 public/module.php:17 (N/A) ``` Maybe we can add this domain to the IDPs allowlist or configure the web server to automagically redirect to **www**.pvv.ntnu.no?
felixalb added the
good first issue
services
bug
labels 2025-01-19 22:29:25 +01:00
felixalb added this to the Kanban project 2025-01-19 22:29:25 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Drift/issues#175
No description provided.