title: passport oauth/authorize always redirect login fixed, but Client authentication failed
body: <p>when I request url redirect, I can't get access_token, It always redirect to login</p>
  
  <pre><code>// First route that user visits on consumer app
  Route::get('/redirect', function () {
      // Build the query parameter string to pass auth information to our request
      $query = http_build_query([
          'client_id' =&gt; 1,
          'redirect_uri' =&gt; 'http://app_golf.xiongmaojf.com/callback',
          'response_type' =&gt; 'code',
          'scope' =&gt; 'crud-bookmark-collections crud-bookmark-tags crud-bookmarks'
      ]);
  // var_export($query);
      // Redirect the user to the vOAuth authorization page
      return redirect('http://golf.xiongmaojf.com/oauth/authorize?' . $query);
  });
  
  // Route that user is forwarded back to after approving on server
  Route::get('/callback', function (Request $request) {
      $http = new GuzzleHttp\Client;
  
      $response = $http-&gt;post('http://golf.xiongmaojf.com/oauth/token', [
          'form_params' =&gt; [
              'grant_type' =&gt; 'authorization_code',
              'client_id' =&gt; 1, // from admin panel above
              'client_secret' =&gt; 'LNJhtWdGsDTQmei9x4lAh2BBfOmQkqXG3jdOjGRL', // from admin panel above
              'redirect_uri' =&gt; 'http://app_golf.xiongmaojf.com/callback',
              'code' =&gt; $request-&gt;code // Get code from the 
          ]
      ]);
  
      return json_decode((string) $response-&gt;getBody(), true)['access_token'];
  });
  </code></pre>
  
  <p>but request url oauth/authorize, I can't get token, it always redirect to login, </p>
  
  <p>I solved this problem, because I'm not login, I'm so sorry for that,  but when I'm logined, request url oauth/authorize , It always require userName and password for golf.xiongmaojf.com, any userName and password is not useful, </p>
  
  <p><a href="https://i.stack.imgur.com/iLc9T.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iLc9T.jpg" alt="enter image description here"></a></p>
  
  <p>and if I clieck Cancel  It responsed  </p>
  
  <pre><code>{
      "error": "invalid_client",
      "message": "Client authentication failed"
  }
  </code></pre>
  
  <p>I solved this problem by reigster new app_client use oauth/clients, and got this page 
  <a href="https://i.stack.imgur.com/dgpj7.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dgpj7.jpg" alt="enter image description here"></a></p>
  
  <p>I got access_token</p>