I have been making research to switch to a community supported authorization system rather than the one I've built. I made the mistake of rebuilding the wheel, instead of implementing a community driven system that utilizes the best practices. However, I couldn't find any authorization example with JWT rather than authentication.
I'm open to all suggestions. As far as I could find, JWT and OAuth requires clients to have an existing account, and authenticate in order to receive a token. However, I need the below functionality in my application.
- Anonymous users should get an access token, and be able to fetch some resources. I should be able to recognize these guest clients and store session data for them.
- Guest users should be able to log-in, and then perhaps get a new token, or update their access level to request restricted resources and perform operations that is only for members.
I'm going to built this project with Laravel 5.1 and AngularJS. All suggestions are greatly appreciated. I really could use some directions on this, and simple links to documentations would be enough.