5 * This file contains constant definitions for libomb. The defined constants
6 * are service and namespace URIs for OAuth and OMB as used in XRDS.
10 * LICENSE: This program is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU Affero General Public License as published by
12 * the Free Software Foundation, either version 3 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Affero General Public License for more details.
20 * You should have received a copy of the GNU Affero General Public License
21 * along with this program. If not, see <http://www.gnu.org/licenses/>.
24 * @author Adrian Lang <mail@adrianlang.de>
25 * @copyright 2009 Adrian Lang
26 * @license http://www.gnu.org/licenses/agpl.html GNU AGPL 3.0
33 define('OMB_VERSION_01', 'http://openmicroblogging.org/protocol/0.1');
35 /* The OMB version supported by this libomb version. */
36 define('OMB_VERSION', OMB_VERSION_01);
38 define('OMB_ENDPOINT_UPDATEPROFILE', OMB_VERSION . '/updateProfile');
39 define('OMB_ENDPOINT_POSTNOTICE', OMB_VERSION . '/postNotice');
42 * The OAuth constants.
45 define('OAUTH_NAMESPACE', 'http://oauth.net/core/1.0/');
47 define('OAUTH_ENDPOINT_REQUEST', OAUTH_NAMESPACE.'endpoint/request');
48 define('OAUTH_ENDPOINT_AUTHORIZE', OAUTH_NAMESPACE.'endpoint/authorize');
49 define('OAUTH_ENDPOINT_ACCESS', OAUTH_NAMESPACE.'endpoint/access');
50 define('OAUTH_ENDPOINT_RESOURCE', OAUTH_NAMESPACE.'endpoint/resource');
52 define('OAUTH_AUTH_HEADER', OAUTH_NAMESPACE.'parameters/auth-header');
53 define('OAUTH_POST_BODY', OAUTH_NAMESPACE.'parameters/post-body');
55 define('OAUTH_HMAC_SHA1', OAUTH_NAMESPACE.'signature/HMAC-SHA1');
57 define('OAUTH_DISCOVERY', 'http://oauth.net/discovery/1.0');