Hi...having the same challenge. Front-end angular and backend laravel + jquery.
Any news on this? have you found a way to implement a RESTfull API with OAuth2? if yes, could you please tell us how and possibly share your code?
thanks
Same here! I've found that you can get the cookie "laravel_session" from your http request in android, but how do you go about keeping that cookie for future requests (or even when your user closes and opens your app again).
Thanks
You can use tappleby/laravel-auth-token instead of oauth if you'd like. It's very easy to get going. You'll probably want to use laravel-cors as well.
Maybe this can help? https://github.com/dingo/api (And you mean this package? https://github.com/barryvdh/laravel-cors)
I agree that there is very little documentation about setting up the controllers or whatever in order to get the ball rolling.
Hello. On this Laravel course, is taught how to develop a RESTful API, and has a new section about the OAuth2 server. There you can learn how to create a OAuth 2 Server, step-by-step for rour RESTful API.
Here the link: https://www.udemy.com/laravel-5-php-framework-agile-and-practical-php-restful-api/?couponCode=oauth2_2
Additionally there is a course for this on Lumen as well: https://www.udemy.com/lumen-restful-api-and-homestead-for-lumen-by-laravel-and-php/?couponCode=oauth2
I hope it helps.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community