Welcome Developers!

in

Welcome!

in

verifying signed request

Last post 07-25-2009 12:57 AM by Simon. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 07-25-2009 12:57 AM

    • Simon
    • Not Ranked
    • Joined on 07-01-2009
    • Posts 1

    verifying signed request

    i am trying to make a request and verify it, but after reading many docs and posts, i am still not sure how to go about it. i am using an opensocial 0.8 myspace app in the profile surface.
    
    my source is this:
        var params = {};
        params[gadgets.io.RequestParameters.AUTHENTICATION] = gadgets.io.AuthorizationType.SIGNED;
        params[gadgets.io.RequestParameters.METHOD] = gadgets.io.MethodType.GET;
        params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.HTML;
        gadgets.io.makeRequest(url, my_Callback, params);
    
    my server gets this:
            header: X-OpenSocial-Authorization = OPENSOCIAL opensocial_token="xMq0barNKTEqy7udu0ZwDbRpwskgZXjA+Vg5sCypwfxsEaNBYDkiotVdq1zGvvYopjUrbmtbbjoDwMRjGeTx2I8IGG48QQfBlsETZ3BqC5U="
            header: X-Opensocial-Owner-Id = 166680141
            header: X-Opensocial-Viewer-Id = 166680141
    
    
    i was thinking i should verify a signature using my consumer key and secret key, but there is no signature.
    do i verify the request using the opensocial_token somehow?
    
Page 1 of 1 (1 items)