title: Laravel - No reply address is registered for the application in Socialite Azure AD Login
body: <p>I am using Laravel-5.8 for User Azure AD Authentication. I installed this package:</p>
  
  <pre><code>"socialiteproviders/microsoft-azure": "^3.0",
  
  composer require socialiteproviders/microsoft-azure
  </code></pre>
  
  <p>I also did the configuration. The regular Login from database is working perfecting, but I have issues with the Laravel microsoft-azure integration.</p>
  
  <p><strong>Login Controller</strong></p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers\Auth;
  
  use App\Http\Controllers\Controller;
  use Illuminate\Foundation\Auth\AuthenticatesUsers;
  use Illuminate\Http\Request;
  use Socialite;
  
  class LoginController extends Controller
  {
  use AuthenticatesUsers;
  protected $redirectTo = '/dashboard';
  
  public function __construct()
  {
      $this-&gt;middleware('guest')-&gt;except('logout');
  }
  
  public function redirectToProvider()
  {
      return Socialite::with('azure')-&gt;redirect();
  }
  
  public function handleProviderCallback()
  {
      $user = Socialite::with('azure')-&gt;user();
  }
  </code></pre>
  
  <p><strong>login.blade</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>    &lt;form class="login-form" method="POST" action="{{ route('login') }}"&gt;
          {{ csrf_field() }}
  
          &lt;div class=" w3l-form-group{{ $errors-&gt;has('email') ? ' has-error' : '' }}"&gt;
              &lt;label&gt;Username:&lt;/label&gt;
              &lt;div class="group"&gt;
                  &lt;i class="fas fa-user"&gt;&lt;/i&gt;
                  &lt;input id="email" type="text" class="form-control" name="email" placeholder="Email" required autofocus&gt;
              &lt;div&gt;
              &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div&gt;
              @if ($errors-&gt;has('email'))
                  &lt;span class="help-block" style="color: red"&gt;
                      &lt;strong&gt;{{ $errors-&gt;first('email') }}&lt;/strong&gt;
                  &lt;/span&gt;
              @endif
          &lt;/div&gt;
  
          &lt;div class=" w3l-form-group{{ $errors-&gt;has('password') ? ' has-error' : '' }}"&gt;
              &lt;label&gt;Password:&lt;/label&gt;
              &lt;div class="group"&gt;
                  &lt;i class="fas fa-unlock"&gt;&lt;/i&gt;
                  &lt;input id="password" type="password" class="form-control" name="password" placeholder="Password"  required&gt;
                  @if ($errors-&gt;has('password'))
                      &lt;span class="help-block"&gt;
                          &lt;strong&gt;{{ $errors-&gt;first('password') }}&lt;/strong&gt;
                      &lt;/span&gt;
                  @endif
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;button type="submit"&gt;Login&lt;/button&gt;
          &lt;a href="{{ route('azure.login') }}" class="btn btn-primary"&gt; Azure Login&lt;/a&gt;
      &lt;/form&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><strong>route/web.php</strong></p>
  
  <pre><code>Route::get('login/azure', 'Auth\LoginController@redirectToProvider')-&gt;name('azure.login');
  Route::get('login/azure/callback', 'Auth\LoginController@handleProviderCallback');
  </code></pre>
  
  <p>config/services</p>
  
  <pre><code>'azure' =&gt; [
  'client_id' =&gt; env('AZURE_KEY'),
  'client_secret' =&gt; env('AZURE_SECRET'),
  'redirect' =&gt; env('AZURE_REDIRECT_URI')
  ],
  </code></pre>
  
  <p><strong>.env</strong></p>
  
  <pre><code>AZURE_KEY= something
  AZURE_SECRET= something
  AZURE_REDIRECT_URI= http://localhost:8888/login/microsoft/callback
  </code></pre>
  
  <p><strong>config/app</strong></p>
  
  <pre><code>\SocialiteProviders\Manager\ServiceProvider::class,
  </code></pre>
  
  <p>When I clicked on Azure Login button, I got this error in the screenshot: </p>
  
  <p><a href="https://i.stack.imgur.com/L9U3e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/L9U3e.png" alt="azure login error"></a></p>
  
  <p>How do I resolve this?</p>
  
  <p>Thank you</p>
  
  <p>New Error:</p>
  
  <p><a href="https://i.stack.imgur.com/5ixi7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5ixi7.png" alt="object not found"></a></p>