iignatov / LightOpenID

Lightweight PHP5 library for easy OpenID authentication.
MIT License
79 stars 96 forks source link

Realm and return_to do not match while using wildcard domain #8

Open SpaHost opened 9 years ago

SpaHost commented 9 years ago

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.

iignatov commented 8 years ago

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