-
Notifications
You must be signed in to change notification settings - Fork 25
token write #8
Copy link
Copy link
Open
Description
hi, please help me . I do not know how to write this document token.php
token.php
<?php require_once 'vendor/autoload.php'; $storage = new Dingo\OAuth2\Storage\MySqlAdapter(new PDO('mysql:host=localhost;dbname=oauth2','root','root')); $server = new Dingo\OAuth2\Server\Authorization($storage); $server->registerGrant(new Dingo\OAuth2\Grant\AuthorizationCode); header('Content-Type: application/json'); echo json_encode($server->issueAccessToken());
client.php
`
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels