esbenp / lumen-api-oauth

The code for a blog post I wrote about creating web apps using a Lumen API that is authenticated by OAuth2
http://esbenp.github.io/2015/05/26/lumen-web-api-oauth-2-authentication/
61 stars 22 forks source link

cURL error 7: Failed to connect to oauthlumen.dev port 80: Connection refused #20

Closed Pitu closed 8 years ago

Pitu commented 8 years ago

Hello, when trying to post to /login with a fresh download of this repository + composer update I'm getting the error:

ConnectException in CurlFactory.php line 186:
cURL error 7: Failed to connect to oauthlumen.dev port 80: Connection refused (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

I'm running my apache setup on port 8080. Is there some configuration here I'm missing? Thanks!

Pitu commented 8 years ago

Solved it by changing the file app/config.php line from

'url' => 'http://oauthlumen.dev',

to

'url' => 'localhost:8080',