laravel auth

http://segmentfault.com/a/1190000003106128

http://laravel-china.org/docs/5.0/eloquent

 

 

 curl http://127.0.0.1:8000/oauth/access_token -X POST -d "grant_type=password&username=swagger&password=swagger&client_id=swagger&client_secret=swagger"

{"access_token":"uyVYexbzHtZjn1P8xwJ2iZEp2CkRFmKOWH43vWct","token_type":"Bearer","expires_in":3600}yangrmbp:htd

 

oauth_clients表

 

http://127.0.0.1:8000/api/address?access_token=uyVYexbzHtZjn1P8xwJ2iZEp2CkRFmKOWH43vWct

 

https://github.com/gokush/gkcommerce_backend/

 

 curl http://127.0.0.1/gkcommerce_backend/public/index.php/oauth/access_token -X POST -d "grant_type=password&username=swagger&password=swagger&client_id=swagger&client_secret=swagger"

 

http://localhost/gkcommerce_backend/server.php/api/address?access_token=NU9LtDViifwCsnPa4aiO8ILs5Gkj8DjPRjR0u6ng

 

composer create-project laravel/laravel --prefer-dist my_laravel

 

  342  cd public/
  343  ls
  344  php index.php
  345  ls
  346  php -s index.php
  347  php -S 127.0.0.1:8000 

posted @ 2015-04-15 15:22  lianhuaren  阅读(107)  评论(0)    收藏  举报