Sunday, March 19, 2017

Laravel API for android authentication

I am a beginner in Laravel and I want to develop a RESTful API for android application. The application have Login, Logout, show lists of products, product details and buy products. Just a simple shopping app.

After reading some documents and I got 3 solutions

  1. Laravel passport
  2. Dingo api
  3. jwt-auth

But I wondering how to passing client_id and client_secret to android when I'm using passport. It seems not secure to hardcode.

So, which one is better solution? what are the main difference between these solutions? Should I keep using Laravel passport? Please advise.



via Mr.Joe

Advertisement