-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wiki section "Developing an OAuth 2.0 authorization server" contains incorrect code... #66
Comments
I ran into the same problem. To debug it I just comment out the code that was causing issue. To try to get to the root of the problem. Then I found multiple bugs:
That's the solution... This is found in the __construct method.
I am not sure this is the solution... But it stop the error message for this.
Solutions:
Then you will incouter another error... Here is the solution:
I hope it helps. By the way you will encounter another problem. Non-library specific error. I am trying to figure it out. |
The next problem I got as to do with the $server variable. That is for some reason undefined. The the $server var is supposed to have this value: $this->authserver. Now I am still incoutering some issues. I am not sure I understand them... But when I do I will add new information. |
Thanks fella for looking into it. Does this mean that taking care of one issue raises another and you still have not been able to make it work from the wiki ? I am not able to atleast :( ... |
The problem is that I am not sure how to test out the code to see if everything is ok. |
Why is not the creator to this package helping us out ? I am sure he is the best person to sort this through :( |
Busy... Who knows. But I am trying different things on my server. When I get it to work I will explain here how I did it. |
Okay, that would be great. Amazing no one has found this out before. It's the first tutorial in the wiki ... |
The wiki is sort of a "pseudocode", you need to set it up based on your Framework. |
Help me out with Laravel then :( ... Anyone ? |
I am! Today I some things to do. But tonight I will be working on it. And when I am done I will give more details on how to setup this package with Laravel 4. Right now I am trying out OAuth2-client so that I can test it out with OAuth2-server. The problem is that this package is just a framework to help you create a OAuth2-server. It does not have all the views and other things. You have to coded yourself. The reason, I think, it was to make this package as framework agnostic as possible. But trust me when I am done I will put a link to my GitHub with all the details. |
Guys, sorry I haven't helped out much, I've just started a new job, am moving house and have no Internet connection yet. Please bear with me. Emailing from my iPhone like a BOSS On 3 Jun 2013, at 22:46, Jean-Nicolas Boulay notifications@github.com wrote:
|
@alexbilbie should I continue figuring it out? Or will you post updates that will make what I do obsolete? @developerNoman another thing. Your controller should extend: "BaseController". |
@developerNoman if you're using oauth2-client with Laravel 4, you will need to debug it to make it work. Here is how: thephpleague/oauth2-client#5 I will continue tomorrow... |
In the OAuth2-client Provider folder I added my own provider PHP script. But every time I try to connect to my oauth-server I get an error. So there seems to be a bug with the controller that I have created in the oauth-server side... Or there is something else bugging. |
It seems that there is another problem with the tutorial. Again I am not sure. But in section "Create your first client" of the wiki it says to put data in "oauth_clients" db table. I found that it did not work. So I did some digging and found that I had too add the client_id and redirect_uri to the "oauth_client_endpoints" db table. It's weird because the way it is written in the wiki it seems it's just optional. I am now getting this error: "The requested scope is invalid, unknown, or malformed. Check the "offline_access,email,read_stream" scope." I will try to solve it tonight but no guarantees. |
Regarding the scope error you should delimite your scopes with a space not a comma unless you override it. Emailing from my iPhone like a BOSS On 6 Jun 2013, at 07:59, Jean-Nicolas Boulay notifications@github.com wrote:
|
It works. |
@esolitos can you be so kind and tell me how you got it to work with CodeIgniter ? |
Hi QuasiPerfect, right now I don't remember the steps, anyway you have to change a looooot of things. |
I'm closing this because there are going to be some updated docs in the wiki. |
The method "action_access_token" does not seem to compile correctly under Laravel 4.
Here is the screenshot:
The text was updated successfully, but these errors were encountered: