Skip to content

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

@SpaHost

Description

@SpaHost

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions