/** * Returns the URL to complete the account for a section (scope) given. * * @param string $scope Section-key Identifier of the web client. The * section-key is located in "oauthconf.xml" file. * @return string The URL for complete process. */ public static function getUrlCompleteAccount($scope = null) { $params = array(); $params['client_id'] = OAuthConfig::getClientid(); $params['redirect_uri'] = OAuthConfig::getRedirectUrl('postEditAccount'); $next_url = OAuthConfig::getEndpointUrl('next_url') . '?' . http_build_query($params); $cancel_url = OAuthConfig::getEndpointUrl('cancel_url') . '?' . http_build_query($params); unset($params); return self::buildCompleteAccountUrl(OAuthConfig::getEndpointUrl('complete_account_endpoint'), $next_url, $cancel_url, $scope); }