I'm a beginner to Laravel 4 framework and PHP.
Currently, I'm trying to do a simple authentication process between client application and server.
Below is my planned approach:
Client logs in to server via GET request with username and password.
Server validates and returns a token string if successful. The token string will be encoded (hashed?) with the username, password and expiration time.
Client submits a request, including the given token. Server will validate token (decode it -> check username/password and expired time). If successful, it will process the client's request.
What is the best way to generate the token with the above parameters given, and decode it at the server side?
Thank you, and I appreciate your time and help.