Caused by: SimpleSAML_Error_Exception: URL not allowed:

1,712 views
Skip to first unread message

Володимир Олійник

unread,
Nov 14, 2017, 3:58:48 AM11/14/17
to SimpleSAMLphp
Hi ,everyone


with error text:

SimpleSAML_Error_Error: UNHANDLEDEXCEPTION

Backtrace:
1 www/_include.php:45 (SimpleSAML_exception_handler)
0 [builtin] (N/A)
Caused by: SimpleSAML_Error_Exception: URL not allowed: https://crm.somesite.com/user/logout
Backtrace:
1 lib/SimpleSAML/Utils/HTTP.php:375 (SimpleSAML\Utils\HTTP::checkURLAllowed)
0 www/saml2/idp/SingleLogoutService.php:20 (N/A)
Case,all work fine, but sso logout not work fine:
ssp.somesite.com as  simplesaml

How I can do this domain crm.somesite.com as allowed  ?

Thanks

Tim van Dijen

unread,
Nov 14, 2017, 4:16:43 AM11/14/17
to SimpleSAMLphp


How I can do this domain crm.somesite.com as allowed  ?



Just add it to trusted.url.domains in config.php

Володимир Олійник

unread,
Nov 14, 2017, 4:24:39 AM11/14/17
to SimpleSAMLphp
thank you, it help me.

Jaime Perez Crespo

unread,
Nov 14, 2017, 4:54:47 AM11/14/17
to SimpleSAMLphp
Hi,

On 14 Nov 2017, at 10:16 AM, Tim van Dijen <tvd...@gmail.com> wrote:
>> How I can do this domain crm.somesite.com as allowed ?
>
> Just add it to trusted.url.domains in config.php

Just a comment on this. All domains available in the endpoints registered in the metadata are automatically and transparently whitelisted, so it is not necessary to add domains for remote IdPs / SPs to the list of trusted URL domains.

If doing so is necessary to make things work, that must mean that SimpleSAMLphp is somehow misconfigured.


Jaime Pérez
UNINETT / Feide

jaime...@uninett.no
jaime...@protonmail.com
9A08 EA20 E062 70B4 616B 43E3 562A FE3A 6293 62C2

"Two roads diverged in a wood, and I, I took the one less traveled by, and that has made all the difference."
- Robert Frost

Greg Harvey

unread,
Jul 19, 2019, 7:38:11 AM7/19/19
to SimpleSAMLphp
Sorry, I know this is an old thread, but just an addition to this that may help future searchers:

If your SP / IdP uses a non-standard port (in my case I had a CI server on port 8443) it seems the automatic addition of the trusted URL as described by Jaime doesn't work. I presume (without checking) it adds the domain, but not the port - but the matching seems to happen against the entire address *including port*, so this fixed it for me:

    'trusted.url.domains' => array(
        # When using a port other than 443 you need to explicitly trust the domain with port
    ),


Thanks,

Greg

Jaime Pérez Crespo

unread,
Jul 22, 2019, 3:28:46 AM7/22/19
to 'Jaime Pérez Crespo' via SimpleSAMLphp
Hi Greg,

On 19 Jul 2019, at 13:38, Greg Harvey <greg....@gmail.com> wrote:
> Sorry, I know this is an old thread, but just an addition to this that may help future searchers:
>
> If your SP / IdP uses a non-standard port (in my case I had a CI server on port 8443) it seems the automatic addition of the trusted URL as described by Jaime doesn't work. I presume (without checking) it adds the domain, but not the port - but the matching seems to happen against the entire address *including port*, so this fixed it for me:
>
> 'trusted.url.domains' => array(
> # When using a port other than 443 you need to explicitly trust the domain with port
> 'myserver.mydomain.net:8443',
> ),

If you are running your web server on a non-standard port, then it will be added as well. I’d check the “baseurlpath” configuration option to make sure the port is not overridden there.
Reply all
Reply to author
Forward
0 new messages