PHP code example of zk2 / microsoft-identity-auth
1. Go to this page and download the library: Download zk2/microsoft-identity-auth library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
zk2 / microsoft-identity-auth example snippets
use Zk2\MicrosoftIdentityAuth\MicrosoftIdentityAuth\IdentUser;
',
'vfgj8~bg5-D8nMznk5cvby7PnBuaBTAauOTstgnm',
'http://localhost'
);
$code = "M.C567_SN1.7.U.90e9c33d-da8a-469d-9f90-373e05585009";
print_r($identifier->identifyUser($code));
Array
(
[id] => 5676dcfa56c36e34
[email] => [email protected]
)