CodeIgniter Forums
Oauth wirh Microsoft - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17)
+--- Thread: Oauth wirh Microsoft (/showthread.php?tid=78775)



Oauth wirh Microsoft - lucavalentino - 03-09-2021

I am trying to run an application with the microsoft login.

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