I would like to build a stand alone API that would server at first place old fashion non-singlepage web application and in future mobile app or AngularJS powered front end.
For the authentication I was thinking of OAuth2 with own server: https://github.com/lucadegasperi/oauth2-server-laravel
Should I setup three different applications, one for OAuth server just for authentication, one for "webapp" (controllers and views) and one for API? I guess API would take care of all user data except password?
Should I save the auth token in cookie/session in my webapp and send it to the API in every request?