for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace OAuthTest\Mocks\Common\Service;
use OAuth\Common\Http\Uri\UriInterface;
use OAuth\Common\Service\AbstractService;
class Mock extends AbstractService
{
/**
* Sends an authenticated API request to the path provided.
* If the path provided is not an absolute URI, the base API Uri (service-specific) will be used.
*
* @param string|UriInterface $path
* @param string $method HTTP method
* @param array $body Request body if applicable (an associative array will
* automatically be converted into a urlencoded body)
* @param array $extraHeaders Extra headers if applicable. These will override service-specific
* any defaults.
* @return string
*/
public function request($path, $method = 'GET', $body = null, array $extraHeaders = [])
}
* Returns the url to redirect to for authorization purposes.
* @return UriInterface
public function getAuthorizationUri(array $additionalParameters = [])
* Returns the authorization API endpoint.
public function getAuthorizationEndpoint()
* Returns the access token API endpoint.
public function getAccessTokenEndpoint()
public function testDetermineRequestUriFromPath($path, ?UriInterface $baseApiUri = null)
return $this->determineRequestUriFromPath($path, $baseApiUri);