PHP Classes

What are dependencies for this class?

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  How to Implement a PH...  >  All threads  >  What are dependencies for this class?  >  (Un) Subscribe thread alerts  
Subject:What are dependencies for this class?
Summary:Do SSL libraries or other libraries affect class behavior?
Messages:4
Author:peter addy
Date:2015-11-23 14:38:05
 

  1. What are dependencies for this class?   Reply   Report abuse  
Picture of peter addy peter addy - 2015-11-23 14:38:05
Your plugin works wonderfully on one of our servers, but fails to get access token on another. The two servers have the same versions of PHP, Apache, and MySQL. We found some discrepancies in the SSL libraries between servers. What libraries/dependencies does this class need in order to function? I am attempting to login to Fitbit with OAuth 1.0a, if this matters. Thank you for your help!

  2. Re: What are dependencies for this class?   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2015-11-23 18:17:13 - In reply to message 1 from peter addy
The class just uses the HTTP class for sending HTTP requests.

The class itself does not require any special versions of PHP extensions. However, the servers you are trying to connect may only support certain cyphers or TLS 1.x that your OpenSSL library on the server may not support for being too old.

What error messages appear?

  3. Re: What are dependencies for this class?   Reply   Report abuse  
Picture of peter addy peter addy - 2015-11-23 19:04:01 - In reply to message 2 from Manuel Lemos
the only message in the PHP error log is:
OAuth client: Checking the OAuth token authorization state

The problem seems to be in the function GetAccessToken, although I'm not sure where exactly.

  4. Re: What are dependencies for this class?   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2015-11-23 20:17:53 - In reply to message 3 from peter addy
I suspect that this may be due to an issue with your PHP sessions.

In some environments sessions fail because the PHP session storage directory is with the wrong permissions.

Do sessions work other applications in that environment that the class fails?

Try running a script like this and let me know what it outputs.

<?php
var_dump(session_start())
?>