title: Microsoft Graph SSO Azure AD not redirecting user to Login page
body: <p>Sorry but I am just learning about Microsoft Graph and I have spent the last 4 hours scouring Google to find my answer and my brain is going to explode so I have resorted to Stack.</p>
  <p>I was using a previous method to authenticate a user to Azure AD but it has no more support and I want to switch over to Microsoft Graph. I am able to get the access token but that is as far as I get.</p>
  <p>At this point all I want to do send the user to the Microsoft Login page so they can authenticate and be redirected back to my web app. I have read so much I don't know what else I can read. Is there anyone who can point me in the right direction to how to get this accomplished? also where in the world is the documentation for this?</p>
  <pre><code>$guzzle = new \GuzzleHttp\Client();
  $tenantId = &quot;***********************************&quot;;
  $url = 'https://login.microsoftonline.com/' . $tenantId . '/oauth2/token?api-version=1.0';
  $token = json_decode($guzzle-&gt;post($url, [
      'form_params' =&gt; [
          'client_id' =&gt; '***********************************',
          'client_secret' =&gt; '***********************************',
          'resource' =&gt; 'https://graph.microsoft.com/',
          'grant_type' =&gt; 'client_credentials',
          'redirect_uri' =&gt; 'https://www.example.com/here'
      ],
  ])-&gt;getBody()-&gt;getContents());
  $accessToken = $token-&gt;access_token;
  
  // Create a new Graph client.
  $graph = new Graph();
  $graph-&gt;setAccessToken($accessToken);
  </code></pre>