diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-06-23 17:04:32 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-06-23 17:08:04 +0200 |
commit | bd4aec2c4c979cf88fd2e430b52eb22b34b56dba (patch) | |
tree | 8fc970a0f928aefa62bf348b4ff6e44c5b042730 /apps/user_openid/user.php | |
parent | 3b2fcd356f0e1bc0472583d910932c7771ce991c (diff) | |
download | nextcloud-server-bd4aec2c4c979cf88fd2e430b52eb22b34b56dba.tar.gz nextcloud-server-bd4aec2c4c979cf88fd2e430b52eb22b34b56dba.zip |
Experimental OpenID user backend and server.
Currently all users can set one OpenID identity that allows access to the account.
The identity url's for the server is owncloud/apps/user_openid/user.php/$username
Diffstat (limited to 'apps/user_openid/user.php')
-rw-r--r-- | apps/user_openid/user.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/apps/user_openid/user.php b/apps/user_openid/user.php new file mode 100644 index 00000000000..9ca1fd47c92 --- /dev/null +++ b/apps/user_openid/user.php @@ -0,0 +1,34 @@ +<?php + +/** +* ownCloud +* +* @author Robin Appelman +* @copyright 2011 Robin Appelman icewind1991@gmail.com +* +* This library is free software; you can redistribute it and/or +* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE +* License as published by the Free Software Foundation; either +* version 3 of the License, or any later version. +* +* This library is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU AFFERO GENERAL PUBLIC LICENSE for more details. +* +* You should have received a copy of the GNU Affero General Public +* License along with this library. If not, see <http://www.gnu.org/licenses/>. +* +*/ + +$USERNAME=substr($_SERVER["REQUEST_URI"],strpos($_SERVER["REQUEST_URI"],'.php/')+5); +if(strpos($USERNAME,'?')){ + $USERNAME=substr($USERNAME,0,strpos($USERNAME,'?')); +} + +require_once '../../lib/base.php'; + +require_once 'phpmyid.php'; + + +?>
\ No newline at end of file |