title: Azure Active Directory SSO with Laravel
body: <p>I'm doing sso with azure active directory. I have done the setup on azure and go the keys. I'm using metrogistics/laravel-azure-ad-oauth (<a href="https://packagist.org/packages/metrogistics/laravel-azure-ad-oauth" rel="nofollow noreferrer">https://packagist.org/packages/metrogistics/laravel-azure-ad-oauth</a>) package on laravel to do this. However, when I hit the url <a href="http://localhost:8000/login/microsoft" rel="nofollow noreferrer">http://localhost:8000/login/microsoft</a> , I got redirected to microsoft login page and given an error message.</p>
  
  <p><a href="https://i.stack.imgur.com/Puhat.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Puhat.jpg" alt="enter image description here"></a></p>
  
  <p>I have added following configurations to env file and did whatever package has demanded.</p>
  
  <p>AZURE_AD_CLIENT_ID=XXXXXXXXXXXXXXXXXX (this is application id from azure)
  AZURE_AD_CLIENT_SECRET=XXXXXXXXX (created a new key on azure)</p>
  
  <p>It's been two days I'm searching the internet but could not find a solution. What is it I'm missing here?</p>
  
  <p>Thanks,</p>