PHP Classes

i run test_oauth_client.php

Recommend this page to a friend!

      PHP OAuth Library  >  All threads  >  i run test_oauth_client.php  >  (Un) Subscribe thread alerts  
Subject:i run test_oauth_client.php
Summary:some error
Messages:10
Author:jainjerome
Date:2013-08-14 07:29:40
Update:2013-08-16 09:00:57
 

  1. i run test_oauth_client.php   Reply   Report abuse  
Picture of jainjerome jainjerome - 2013-08-14 07:29:40
i am taiwan user english poor
i used this library andn run
test_oauth_client.php but
show
OAuth client error
Error: the dialog URL is not defined for this server

i need or modify some code?

  2. Re: i run test_oauth_client.php   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2013-08-14 07:45:52 - In reply to message 1 from jainjerome
That is a generic example that is not meant to access any specific OAuth server.

You need to configure all URLs to access the OAuth server you want.

What OAuth server you want to access?

If you want to access a OAuth server that has built-in support in the class, you just need to set the server variable and the class will automatically configure all the URLs for you.

  3. Re: i run test_oauth_client.php   Reply   Report abuse  
Picture of jainjerome jainjerome - 2013-08-15 00:54:46 - In reply to message 2 from Manuel Lemos
Yes but i want access my Oauth server
so i setting
$client->server = 'localhost';
but i don't know how to setting class
oauth_client.php cna you help me how to do

thank you so much



  4. Re: i run test_oauth_client.php   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2013-08-15 02:54:18 - In reply to message 3 from jainjerome
Are you sure you really developed a OAuth server that is running in your machine?

The server variable is just for servers with built-in support in the class.

If you have a OAuth server in your machine, you should set other variables.

Please read the documentation as it explains everything you need to know.

  5. Re: i run test_oauth_client.php   Reply   Report abuse  
Picture of jainjerome jainjerome - 2013-08-15 02:59:26 - In reply to message 4 from Manuel Lemos
The Oauth server need build in linux
if window can setting?

  6. Re: i run test_oauth_client.php   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2013-08-15 05:31:57 - In reply to message 5 from jainjerome
I am not sure what you mean. Can you explain better?

  7. Re: i run test_oauth_client.php   Reply   Report abuse  
Picture of jainjerome jainjerome - 2013-08-15 07:04:42 - In reply to message 6 from Manuel Lemos
The Oauth server can set on windows
i use appserv php mysql

  8. Re: i run test_oauth_client.php   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2013-08-15 07:26:51 - In reply to message 7 from jainjerome
There seems to be some kind of misunderstandings. The OAuth server is a remote site with an API that you need to call. This has nothing to do with the server on which you run PHP, and it does not matter if you run Windows or Linux.

  9. Re: i run test_oauth_client.php   Reply   Report abuse  
Picture of jainjerome jainjerome - 2013-08-16 08:39:13 - In reply to message 8 from Manuel Lemos
[下午 04:38:34] Potato(烤蕃薯)-漂亮了~讚啦~: Hi,
Thanks for your quickly response. I try to describe my problem more details for your reference.

Purpose:
I Wnat to create the OAuth Server on my local machine. And use your PHP OAuth client library.

Implement:
1) I reference the below site step by step to generate the my local server environment.
OAuth-Server Download: https://github.com/php-loep/oauth2-server
OAuth-Server Document: https://github.com/php-loep/oauth2-server/wiki/Developing-an-OAuth-2.0-authorization-server
2) In the official document about the install library after create composer.json. In my environment, I can't exec this UNIX command "composer install".
composer.json - example.
{
"require": {
"league/oauth2-server": "2.*"
}
}

3) Because my environment is windows base. I cna't exec this command "composer install" or "composer update". Have any suggestion or reference URL can help me, thanks.

Please help me again.

  10. Re: i run test_oauth_client.php   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2013-08-16 09:00:57 - In reply to message 9 from jainjerome
Sorry, I can't help you regarding that OAuth server because I did not develop it. You need to ask its developer.

I just can help you to setup the client once you have the server working.