I'm trying to set this up for two different domain names with shared user tables. Immediately after I copy and enter Controller URL and Private key from controller site to a client site, it redirects me to:

http://client.comhttp//controller.org/singlesignon/claim?nonce=938ef936b...

The problem part in the path, I believe, is 'http://client.comhttp//controller.org' There is no any seperator between 'http://client.com' and 'http//controller.org' and there is missing ':' in 'http//controller.org'.

Comments

ad4m’s picture

Status: Active » Needs review

Hello,

I've had the same issue with multilingual, multidomain installation. The problem is singlesignon.inc, at line: 135. Redirect URL is being created there using url(...) function:

$url = $base_url . url($path, array('query' => $query));

If you have multilingual site with domain based language negotiation the url(...) function by default returns the absolute path.
There is easy workaround on that:

$url = url($base_url .'/'. $path, array('query' => $query));

You just need to include the $base_url into the path pased to url function. It will work in non-multilingual installation as well.

yngens’s picture

ad4m, thanks for the suggestion. I gave up to the module, but I hope someone can test and review this and submit as a patch, so that the module maintainer could get it into the official release.