Removed old test/index.php

This commit is contained in:
Alex Bilbie 2012-08-03 16:13:23 +01:00
parent 5c463a69b8
commit b67a804e19

View File

@ -1,84 +0,0 @@
<?php
include_once('../src/oauth2server/Dbinterface.php');
include_once('../src/oauth2server/Server.php');
use \oauth2server;
class db extends oauth2server\ServerDB {
public function validateClient(
string $clientId,
string $clientSecret = null,
string $redirectUri = null
){}
public function newSession(
string $clientId,
string $redirectUri,
$type = 'user',
string $typeId = null,
string $authCode = null,
string $accessToken = null,
$stage = 'request'
){}
public function updateSession(
string $clientId,
$type = 'user',
string $typeId = null,
string $authCode = null,
string $accessToken = null,
string $stage
){}
public function deleteSession(
string $clientId,
string $type,
string $typeId
){}
public function validateAuthCode(
string $clientId,
string $redirectUri,
string $authCode
){}
/**
* Has access token
*
* Check if an access token exists for a user (or an application)
*
* @access public
* @return bool|string Return FALSE is a token doesn't exist or return the
* access token as a string
*/
public function hasAccessToken(
string $typeId,
string $clientId
){}
public function getAccessToken(int $sessionId){}
public function removeAuthCode(int $sessionId){}
public function setAccessToken(
int $sessionId,
string $accessToken
){}
public function addSessionScope(
int $sessionId,
string $scope
){}
public function getScope(string $scope){}
public function updateSessionScopeAccessToken(
int $sesstionId,
string $accessToken
){}
public function accessTokenScopes(string $accessToken){}
}
$server = new oauth2server\Server();