mirror of
				https://github.com/elyby/oauth2-server.git
				synced 2025-05-31 14:12:07 +05:30 
			
		
		
		
	Removed unnecessary files
This commit is contained in:
		@@ -1,27 +0,0 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
namespace LNCD\OAuth2server;
 | 
			
		||||
 | 
			
		||||
class AccessToken
 | 
			
		||||
{
 | 
			
		||||
    public function __construct()
 | 
			
		||||
    {
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function get(int $sessionId)
 | 
			
		||||
    {
 | 
			
		||||
        // returns an access token that the user may already have
 | 
			
		||||
        // (else generate a new one)
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function validate(string $accessToken, array $scopes)
 | 
			
		||||
    {
 | 
			
		||||
        // tests if an access token is valid
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    private function set(int $sessionId)
 | 
			
		||||
    {
 | 
			
		||||
        // generate a new access token
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@@ -1,25 +0,0 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
namespace LNCD\OAuth2server;
 | 
			
		||||
 | 
			
		||||
class Client
 | 
			
		||||
{
 | 
			
		||||
    protected $id;
 | 
			
		||||
    protected $secret;
 | 
			
		||||
    protected $redirect_uri;
 | 
			
		||||
 | 
			
		||||
    public function __construct()
 | 
			
		||||
    {
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function validate(array $details)
 | 
			
		||||
    {
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function redirectUri(string $redirectUri, array $params, $queryDelimeter = '?')
 | 
			
		||||
    {
 | 
			
		||||
        // Generates the redirect uri with appended params
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@@ -1,16 +0,0 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
namespace LNCD\OAuth2server;
 | 
			
		||||
 | 
			
		||||
class Scope
 | 
			
		||||
{
 | 
			
		||||
    public function exists(string $scope)
 | 
			
		||||
    {
 | 
			
		||||
        // tests if a scope exists
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function details($scopes)
 | 
			
		||||
    {
 | 
			
		||||
        // returns details about a scope to display to a user
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user