Verzeichnisstruktur phpBB-3.1.0
- Veröffentlicht
- 27.10.2014
So funktioniert es
|
Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück |
Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
ServiceInterface.php
01 <?php
02 namespace OAuth\OAuth2\Service;
03
04 use OAuth\Common\Consumer\Credentials;
05 use OAuth\Common\Storage\TokenStorageInterface;
06 use OAuth\Common\Token\TokenInterface;
07 use OAuth\Common\Http\Client\ClientInterface;
08 use OAuth\Common\Http\Exception\TokenResponseException;
09 use OAuth\Common\Service\ServiceInterface as BaseServiceInterface;
10 use OAuth\Common\Http\Uri\UriInterface;
11
12 /**
13 * Defines the common methods across OAuth 2 services.
14 */
15 interface ServiceInterface extends BaseServiceInterface
16 {
17 /**
18 * Authorization methods for various services
19 */
20 const AUTHORIZATION_METHOD_HEADER_OAUTH = 0;
21 const AUTHORIZATION_METHOD_HEADER_BEARER = 1;
22 const AUTHORIZATION_METHOD_QUERY_STRING = 2;
23 const AUTHORIZATION_METHOD_QUERY_STRING_V2 = 3;
24
25 /**
26 * @param \OAuth\Common\Consumer\Credentials $credentials
27 * @param \OAuth\Common\Http\Client\ClientInterface $httpClient
28 * @param \OAuth\Common\Storage\TokenStorageInterface $storage
29 * @param array $scopes
30 * @param UriInterface|null $baseApiUri
31 * @abstract
32 */
33 public function __construct(Credentials $credentials, ClientInterface $httpClient, TokenStorageInterface $storage, $scopes = array(), UriInterface $baseApiUri = null);
34
35 /**
36 * Retrieves and stores/returns the OAuth2 access token after a successful authorization.
37 *
38 * @abstract
39 * @param string $code The access code from the callback.
40 * @return TokenInterface $token
41 * @throws TokenResponseException
42 */
43 public function requestAccessToken($code);
44 }
45