Git Product home page Git Product logo

appdirect-php-wrapper's People

Contributors

egerlach avatar iniq avatar josephfung avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

appdirect-php-wrapper's Issues

The request did not validate using AppDirect OAuth signatures

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.

How do I handle SSO?

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.

Getting subsription orders configuration entries

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.