Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (38 sloc) 1.147 kB
<?php
/*
* This file is part of the HWIOAuthBundle package.
*
* (c) Hardware.Info <opensource@hardware.info>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace HWI\Bundle\OAuthBundle\OAuth;
/**
* Interface for classes providing a request tokens storage.
*
* The storage is needed because the oauth1.0a authentication flow requires
* requests to be signed with the same values in consecutive requests.
*
* @author Alexander <iam.asm89@gmail.com>
* @author Francisco Facioni <fran6co@gmail.com>
*/
interface OAuth1RequestTokenStorageInterface
{
/**
* Fetch a request token from the storage.
*
* @param ResourceOwnerInterface $resourceOwner
* @param string $tokenId
*
* @return array
*/
function fetch(ResourceOwnerInterface $resourceOwner, $tokenId);
/**
* Save a request token to the storage.
*
* @param ResourceOwnerInterface $resourceOwner
* @param array $token
*/
function save(ResourceOwnerInterface $resourceOwner, $token);
}
Jump to Line
Something went wrong with that request. Please try again.