mirror of
https://github.com/YunoHost-Apps/kanboard_ynh.git
synced 2024-09-03 19:36:17 +02:00
5e51bcd6e9
Kanboard 1.0.6
45 lines
1.3 KiB
PHP
45 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace OAuth\OAuth1\Service;
|
|
|
|
use OAuth\Common\Consumer\CredentialsInterface;
|
|
use OAuth\Common\Storage\TokenStorageInterface;
|
|
use OAuth\Common\Token\TokenInterface;
|
|
use OAuth\Common\Http\Client\ClientInterface;
|
|
use OAuth\Common\Http\Uri\UriInterface;
|
|
use OAuth\Common\Http\Exception\TokenResponseException;
|
|
use OAuth\Common\Service\ServiceInterface as BaseServiceInterface;
|
|
use OAuth\OAuth1\Signature\SignatureInterface;
|
|
|
|
/**
|
|
* Defines the common methods across OAuth 1 services.
|
|
*/
|
|
interface ServiceInterface extends BaseServiceInterface
|
|
{
|
|
/**
|
|
* Retrieves and stores/returns the OAuth1 request token obtained from the service.
|
|
*
|
|
* @return TokenInterface $token
|
|
*
|
|
* @throws TokenResponseException
|
|
*/
|
|
public function requestRequestToken();
|
|
|
|
/**
|
|
* Retrieves and stores/returns the OAuth1 access token after a successful authorization.
|
|
*
|
|
* @param string $token The request token from the callback.
|
|
* @param string $verifier
|
|
* @param string $tokenSecret
|
|
*
|
|
* @return TokenInterface $token
|
|
*
|
|
* @throws TokenResponseException
|
|
*/
|
|
public function requestAccessToken($token, $verifier, $tokenSecret);
|
|
|
|
/**
|
|
* @return UriInterface
|
|
*/
|
|
public function getRequestTokenEndpoint();
|
|
}
|