tribehr / appdirect-php-wrapper Goto Github PK
View Code? Open in Web Editor NEWA PHP wrapper for working with the AppDirect API
License: Other
A PHP wrapper for working with the AppDirect API
License: Other
We've been using this API without any issues for several years now, when suddenly out of nowhere this error started happening.
The request did not validate using AppDirect OAuth signatures
As far as I'm aware, AppDirect hasn't changed the way their authentication works recently, but I could be wrong. I've sent an email to their support as well asking the same question. What could be causing this error?
Thank you for any help.
Hi
Great wrapper. I was starting to write my own when I found this, and I've been using yours since. However, I just have one question: How do I use your wrapper to manage SSO requests from AppDirect? When I try to catch SSO requests, I get this error:
PHP Notice: Undefined index: oauth_signature in /****/appdirect/appdirect_api/AppDirectConnector.php on line 37
Relevant code:
require_once( "OAuth/OAuth.php" );
require_once( "appdirect_key_and_secret.php" );
require_once( "appdirect_api/AppDirect.php" );
$url = $_GET["url"];
$event = new AppDirectEvent();
try {
$event = $event->getEvent( $url );
} catch( AppDirectException $e ) {
echo $event->xmlResponse( false, 'UNKNOWN_ERROR', 'Unknown error' );
die();
return;
}
And url
is specified as url={openid}
in AppDirect
I assume this code (that works for all the other requests) does not work for SSO. But since you have no wiki or documentation I unfortunately don't know what to do here.
Any help would be appreciated. Thanks
EDIT: In the meantime I will attempt to solve this on my own, and I'll let you know if I manage to solve it, along with the solution.
Don't know if it's just me but I'm getting only one configuration entry when I print $event->payload.
For example if XML request is something like:
<event>
...
<payload>
...
<configuration>
<entry>
<key>domain1</key>
<value>foobar</value>
</entry>
<entry>
<key>domain2</key>
<value>foobar</value>
</entry>
</configuration>
</payload>
</event>
I get only entry with domain2 when I print $event->payload.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.