LightOpenID icon indicating copy to clipboard operation
LightOpenID copied to clipboard

Realm and return_to do not match while using wildcard domain

Open SpaHost opened this issue 10 years ago • 1 comments

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.

SpaHost avatar Jul 07 '14 05:07 SpaHost

Sorry, but I don't use this library (or PHP at all) anymore, so I have no plans to update it.

iignatov avatar Feb 20 '16 18:02 iignatov