PATH:
home
/
letacommog
/
entrepro
/
wp-content
/
plugins
/
dokan-pro
/
includes
/
modules
/
stripe
/
classes
/
lib
/
oauth
<?php /** * Storage engines that support the "Authorization Code" * grant type should implement this interface * * @author Dave Rochwerger <catch.dave@gmail.com> * @see http://tools.ietf.org/html/draft-ietf-oauth-v2-20#section-4.1 */ interface IOAuth2GrantCode extends IOAuth2Storage { /** * The Authorization Code grant type supports a response type of "code". * * @var string * @see http://tools.ietf.org/html/draft-ietf-oauth-v2-20#section-1.4.1 * @see http://tools.ietf.org/html/draft-ietf-oauth-v2-20#section-4.2 */ const RESPONSE_TYPE_CODE = OAuth2::RESPONSE_TYPE_AUTH_CODE; /** * Fetch authorization code data (probably the most common grant type). * * Retrieve the stored data for the given authorization code. * * Required for OAuth2::GRANT_TYPE_AUTH_CODE. * * @param $code * Authorization code to be check with. * * @return * An associative array as below, and NULL if the code is invalid: * - client_id: Stored client identifier. * - redirect_uri: Stored redirect URI. * - expires: Stored expiration in unix timestamp. * - scope: (optional) Stored scope values in space-separated string. * * @see http://tools.ietf.org/html/draft-ietf-oauth-v2-20#section-4.1 * * @ingroup oauth2_section_4 */ public function getAuthCode($code); /** * Take the provided authorization code values and store them somewhere. * * This function should be the storage counterpart to getAuthCode(). * * If storage fails for some reason, we're not currently checking for * any sort of success/failure, so you should bail out of the script * and provide a descriptive fail message. * * Required for OAuth2::GRANT_TYPE_AUTH_CODE. * * @param $code * Authorization code to be stored. * @param $client_id * Client identifier to be stored. * @param $user_id * User identifier to be stored. * @param $redirect_uri * Redirect URI to be stored. * @param $expires * Expiration to be stored. * @param $scope * (optional) Scopes to be stored in space-separated string. * * @ingroup oauth2_section_4 */ public function setAuthCode($code, $client_id, $user_id, $redirect_uri, $expires, $scope = NULL); }
[+]
..
[-] IOAuth2GrantImplicit.php
[edit]
[-] fb_ca_chain_bundle.crt
[edit]
[-] IOAuth2Storage.php
[edit]
[-] OAuth2Exception.php
[edit]
[-] IOAuth2GrantUser.php
[edit]
[-] OAuth2.php
[edit]
[-] IOAuth2GrantExtension.php
[edit]
[-] OAuth2RedirectException.php
[edit]
[-] OAuth2AuthenticateException.php
[edit]
[-] OAuth2Client.php
[edit]
[-] IOAuth2RefreshTokens.php
[edit]
[-] IOAuth2GrantCode.php
[edit]
[-] OAuth2ServerException.php
[edit]
[-] IOAuth2GrantClient.php
[edit]