Lumen API with OAuth2.0

I am trying to create an API with ... I want to use OAuth 2.0, but I don't know how to use it.

I tried the following this tutorial and I get an error when entering the API "Something went wrong"

+3


source to share


3 answers


Answering a little late, but in the interest of closing the question.

The problem you are having is related to your PHP setup and not inherently the Lumen problem. Seeing that you are working on windows, you want to edit php.ini on the line defining the maximum execution time.



max_execution_time 60

Change the shape to something taller, say 300. At the same time, you may want to increase the memory allocated by PHP to reduce such problems.

0


source


Has the problem been resolved?

I think the issue is not PHP runtime, but you have something that is not configured correctly. Maybe there is an endless loop or something else. Check your Lumen log for details (storage / logs).



Btw i tried this but i got no errors. It works like a charm.

0


source


I found many questions about this article and there are some problems with the code in my opinion. I think the main problem is the "proxy" implemented there. Technically, this allows you to have only one regular customer, while in the "real world" you can have many customers.

The "proxy" function is optional. You can just get your access_token along the route without using eats.

I developed the following course that I want to share with you: Lumen RESTful API with OAuth2 . There is a complete chapter on OAuth2 and how to use it in your RESTful API to get access_token and of course secure routes / resources with that.

-1


source







All Articles