13 lines
361 B
PHP
13 lines
361 B
PHP
<?php
|
|
/**
|
|
* Adapted from Oauth2-server-php cookbook
|
|
* @see http://bshaffer.github.io/oauth2-server-php-docs/cookbook/
|
|
*/
|
|
|
|
// include our OAuth2 Server object
|
|
require_once __DIR__.'/server.php';
|
|
|
|
// Handle a request for an OAuth2.0 Access Token and send the response to the client
|
|
$server->handleTokenRequest(OAuth2\Request::createFromGlobals())->send();
|
|
?>
|