Revert OpenID Connect endsession change

This commit is contained in:
Bryant Luk
2016-08-18 14:10:28 -05:00
parent b5c4c6937b
commit e4aad7c1ea
3 changed files with 5 additions and 5 deletions

View File

@@ -53,7 +53,7 @@ class OpenIdSession
if ($state) {
$params['state'] = $state;
}
return sprintf("%s/authorize?%s", self::getBaseUrl($config), http_build_query($params));
return sprintf("%s/signin/authorize?%s", self::getBaseUrl($config), http_build_query($params));
}
@@ -80,7 +80,7 @@ class OpenIdSession
'redirect_uri' => $redirectUri,
'logout' => 'true'
);
return sprintf("%s/endsession?%s", self::getBaseUrl($config), http_build_query($params));
return sprintf("%s/webapps/auth/protocol/openidconnect/v1/endsession?%s", self::getBaseUrl($config), http_build_query($params));
}
/**

View File

@@ -20,8 +20,8 @@ class PayPalConstants
const APPROVAL_URL = 'approval_url';
const REST_SANDBOX_ENDPOINT = "https://api.sandbox.paypal.com/";
const OPENID_REDIRECT_SANDBOX_URL = "https://www.sandbox.paypal.com/signin";
const OPENID_REDIRECT_SANDBOX_URL = "https://www.sandbox.paypal.com";
const REST_LIVE_ENDPOINT = "https://api.paypal.com/";
const OPENID_REDIRECT_LIVE_URL = "https://www.paypal.com/signin";
const OPENID_REDIRECT_LIVE_URL = "https://www.paypal.com";
}