PHP Classes

Long POST vars included in Authorization HTTP header cause error

Recommend this page to a friend!

      PHP OAuth Library  >  All threads  >  Long POST vars included in...  >  (Un) Subscribe thread alerts  
Subject:Long POST vars included in...
Summary:400 Bad Request errors triggered by long Authorization header
Messages:11
Author:Meitar
Date:2014-04-07 23:35:04
Update:2014-04-12 03:31:43
 
  1 - 10   11 - 11  

  11. Re: Long POST vars included in...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2014-04-12 03:31:43 - In reply to message 10 from Meitar
Yes, the class was supporting too many OAuth servers and that was making it hard to maintain. So most OAuth servers except the most used were moved to the external configuration file. This was mentioned in the changes of a previous version.

Anyway, the Initialize function fails if the configuration file is not present. Probably you are not checking for the return value of the Initialize function. You should always check it as it may fail for some reason, which is the case of missing configuration.

 
  1 - 10   11 - 11