mirror of
				https://github.com/elyby/oauth2-server.git
				synced 2025-05-31 14:12:07 +05:30 
			
		
		
		
	Implemented getAuthCodeScopes() in PDO Session
This commit is contained in:
		@@ -171,6 +171,17 @@ class Session implements SessionInterface
 | 
			
		||||
        $stmt->execute();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function getAuthCodeScopes($oauthSessionAuthCodeId)
 | 
			
		||||
    {
 | 
			
		||||
        $db = \ezcDbInstance::get();
 | 
			
		||||
 | 
			
		||||
        $stmt = $db->prepare('SELECT scope_id FROM `oauth_session_authcode_scopes` WHERE oauth_session_authcode_id = :authCodeId');
 | 
			
		||||
        $stmt->bindValue(':authCodeId', $oauthSessionAuthCodeId);
 | 
			
		||||
        $stmt->execute();
 | 
			
		||||
 | 
			
		||||
        return $stmt->fetchAll();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function associateScope($accessTokenId, $scopeId)
 | 
			
		||||
    {
 | 
			
		||||
        $db = \ezcDbInstance::get();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user