Skip to content

Instantly share code, notes, and snippets.

@noriyukitakei
Created April 3, 2018 00:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noriyukitakei/73df9e9c01435f4f5f05dd69aebcf3a1 to your computer and use it in GitHub Desktop.
Save noriyukitakei/73df9e9c01435f4f5f05dd69aebcf3a1 to your computer and use it in GitHub Desktop.
アクセストークン発行
<?php
// データベースの接続情報などを定義している共通処理をrequireします。
require_once __DIR__.'/server.php';
// アクセストークンを取得するためのリクエストを検証し、正しければ、アクセストークンを発行します。
$server->handleTokenRequest(OAuth2\Request::createFromGlobals())->send();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment