From 70ee2a148c86cd8f1d92f47b8b886af26030c6da Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Fri, 21 Feb 2014 10:32:18 -0300 Subject: [PATCH] fix error with openid provider when server has https enabled (fixes #43) --- google/connect.php | 1 + yahoo/connect.php | 1 + 2 files changed, 2 insertions(+) diff --git a/google/connect.php b/google/connect.php index 275b9cb..5496eaa 100644 --- a/google/connect.php +++ b/google/connect.php @@ -8,6 +8,7 @@ $openid = new LightOpenID; $openid->identity = 'https://www.google.com/accounts/o8/id'; $openid->required = array('namePerson/first', 'namePerson/last', 'contact/email'); + $openid->realm = home_url(); $openid->returnUrl = home_url('index.php?social-connect=google'); header('Location: ' . $openid->authUrl()); die(); diff --git a/yahoo/connect.php b/yahoo/connect.php index 4a9114e..1e23a96 100644 --- a/yahoo/connect.php +++ b/yahoo/connect.php @@ -8,6 +8,7 @@ $openid = new LightOpenID; $openid->identity = 'me.yahoo.com'; $openid->required = array('namePerson', 'namePerson/friendly', 'contact/email'); + $openid->realm = home_url(); $openid->returnUrl = home_url('index.php?social-connect=yahoo'); header('Location: ' . $openid->authUrl()); die();