minor corrections for OMB discovery

darcs-hash:20080602185137-84dde-0a3db0833eaf9361447559a6366e3820ae1f0694.gz
This commit is contained in:
Evan Prodromou 2008-06-02 14:51:37 -04:00
parent 823b79366f
commit 0f374fb944
2 changed files with 2 additions and 3 deletions

View File

@ -186,7 +186,7 @@ class RemotesubscribeAction extends Action {
# XXX: check that we got all the services we needed
foreach (array_merge($omb_endpoints, $oauth_endpoints) as $type) {
if (!array_key_exists($type, $omb)) {
if (!array_key_exists($type, $omb) || !$omb[$type]) {
common_debug('remotesubscribe.php - could not find type "'.$type.'"');
return NULL;
}

View File

@ -57,8 +57,7 @@ class XrdsAction extends Action {
$this->show_service(OAUTH_ENDPOINT_AUTHORIZE,
common_local_url('userauthorization'),
array(OAUTH_AUTH_HEADER, OAUTH_POST_BODY),
array(OAUTH_HMAC_SHA1),
$user->uri);
array(OAUTH_HMAC_SHA1));
$this->show_service(OAUTH_ENDPOINT_ACCESS,
common_local_url('accesstoken'),