03-09-2021, 02:49 AM
I am trying to run an application with the microsoft login.
Then how do I recover Microsoft data
PHP Code:
$authUrl = 'https://login.microsoftonline.com/id/oauth2/v2.0/authorize';
$query = http_build_query([
'client_id' => ('client_id'),
'client_secret' => ('client_secret'),
'response_type' => 'code',
'redirect_uri' => 'https://dev.app.it/MS_login/login',
'scope' => 'User.Read profile openid email'
]);
redirect($authUrl . '?' . $query);
}
Then how do I recover Microsoft data