LightOpenID
LightOpenID copied to clipboard
Realm and return_to do not match while using wildcard domain
Hi, i get that error everytime if i use a wildcard domain for the realm like this:
$openid = new LightOpenID('*.example.com');
if(!$openid->mode) {
if(isset($_GET['login'])) {
$openid->identity = 'http://steamcommunity.com/openid';
$openid->returnUrl ='http://'.$_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
header('Location: ' . $openid->authUrl());
}
I saw http://nodge.ru/yii-eauth/demo2/ has the option for this... i dont want to use this framework... I hope you can lend me a hand!! LightOpenID base has the same error (and someones pulls a merge request with the fix) but i cant fix it.
Sorry, but I don't use this library (or PHP at all) anymore, so I have no plans to update it.