![]() 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/old/vendor/lusitanian/oauth/src/OAuth/OAuth2/Service/ |
<?php namespace OAuth\OAuth2\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\Exception\TokenResponseException; use OAuth\Common\Service\ServiceInterface as BaseServiceInterface; use OAuth\Common\Http\Uri\UriInterface; /** * Defines the common methods across OAuth 2 services. */ interface ServiceInterface extends BaseServiceInterface { /** * Authorization methods for various services */ const AUTHORIZATION_METHOD_HEADER_OAUTH = 0; const AUTHORIZATION_METHOD_HEADER_BEARER = 1; const AUTHORIZATION_METHOD_QUERY_STRING = 2; const AUTHORIZATION_METHOD_QUERY_STRING_V2 = 3; const AUTHORIZATION_METHOD_QUERY_STRING_V3 = 4; const AUTHORIZATION_METHOD_QUERY_STRING_V4 = 5; /** * Retrieves and stores/returns the OAuth2 access token after a successful authorization. * * @param string $code The access code from the callback. * @param string $state * * @return TokenInterface $token * * @throws TokenResponseException */ public function requestAccessToken($code, $state = null); }