Hi, Please ignore my last mail. I am able to solve it. But I came to know one thing that some part of documentation of OAuth on google site (http://code.google.com/apis/accounts/docs/OAuth_ref.html) is really confusing. For example documentation of OAuthGetRequestToken reads:
*Depending on the type of request sent, these parameters can be placed in:* - *Authorization header of a **GET** or **POST** request. Use "**Authorization: OAuth**". All parameters listed above can go in the header, except for ** scope** and**xoauth_displayname**, which must go either in the body or in the URL as a query parameter. The example below puts them in the body of the request.* So it means I should not be able to send "scope" in authorization header, but I was able to get a valid request token by sending scope in authorization header. Regards, Devendra On Sun, Sep 12, 2010 at 4:23 PM, Devendra A <devendra020...@gmail.com>wrote: > Hi, > > I am struggling with authentication process in my library. I am using > qoauth, an open source implementation of oauth in Qt. Here is the problem: > I am able to get *request token* but when I try to authorize the same > token, I get "*invalid token*" error. I checked, if I generate the request > token in oauth playground using same consumer key and shared secret > ("anonymous" and "anonymous") and try to authorize that token in my code, it > works. So it proves that there is no problem in my way of authorization. The > problem seems to be somewhere in request token generation. I looked further > and found that qoauth library puts all the parameters in http header while > the documentation of orkut API says that "scope" parameter should go as url > query parameter. I moved the "scope" parameter to url but then I started > getting http *bad request* (400) error. > My question is if there was some problem in the token generation why did > google server return that token? It should return only valid token. > Any guess what the problem could be? Any suggestion is welcome. > > Regards, > Devendra > > On Fri, Aug 13, 2010 at 4:08 PM, Devendra A <devendra020...@gmail.com>wrote: > >> Hi Prashant, >> >> Yes, thats ok as we dont have any other solution. >> >> >> thanks for releasing your library! >> Thanks, but we have not yet released the library. We have ported only >> small part of the client library till now. Still we have a long way to go :) >> >> Regards, >> Devendra >> >> On Fri, Aug 13, 2010 at 3:24 PM, Prashant (Google) <p...@google.com>wrote: >> >>> Devendra, >>> >>> Yeah, that's the way to go. Client libraries for the same API but for >>> different platforms all get to have a project site of their own, from >>> where they can be cross-linked to each other. I just added links to >>> the PHP, .NET and Qt libraries that all of you from the community have >>> contributed to the "external links" section of orkut-os-client project >>> home page, and would suggest you to do the same. >>> >>> The issue about syncing up the libraries is a real one, but I'll make >>> it a point going forward to intimate everyone on this list whenever >>> there's a change to the API, so we can all update our respective >>> libraries. Works well for you? >>> >>> And thanks for releasing your library! >>> >>> ~Prashant >>> >>> On Aug 13, 6:05 am, devendra devendra <devendra020...@gmail.com> >>> wrote: >>> > Hi, >>> > >>> > I was thinking that somebody will answer or at least comment on my >>> question, >>> > but it looks nobody has the clear answer. >>> > >>> > By the way, how is the porting of java client library going on in other >>> > languages? It looks, those are separate projects as I dont see any >>> other >>> > folder inside orkut-os-client repository besides "java". Right? >>> > >>> > Anyway, we have started our work in a separate project, >>> "orkut-qt-client". >>> > >>> > Regards, >>> > Devendra >>> > >>> > On Tue, Aug 10, 2010 at 2:37 PM, devendra devendra < >>> devendra020...@gmail.com >>> > >>> > >>> > >>> > > wrote: >>> > > Hi, >>> > >>> > > What is the best way to host this project on code.google.com?: >>> > >>> > > a) Creating a separate project, >>> > > + We can manage the project ourselves e.g. we can add/remove >>> > > contributers and committers ourselves. >>> > > - Managing the project independently will cause sink problem in >>> > > future. For example it will be difficult to keep track of update >>> being done >>> > > in java client. >>> > > - In future if we have to merge the code to the main project >>> > > (orkut-os-client), we lose the development history. >>> > >>> > > b) Working on a clone of orkut-os-client >>> > > + Merging to main project in future will be easy without loosing >>> > > development history. >>> > > - Difficulty in managing the team. We will have to disturb and >>> get >>> > > approval of orkut-os-client owner to add committers and contributers. >>> > > + I hope, as contributors or committers, we will get >>> notifications of >>> > > changes being done in orkut java client lib, so easy to be in sync. >>> > >>> > > Regards, >>> > > Devendra >>> > >>> > > On Thu, Aug 5, 2010 at 11:32 PM, devendra devendra < >>> > > devendra020...@gmail.com> wrote: >>> > >>> > >> Thanks a lot Prashant and Robson for your support. >>> > >>> > >> We have just started the work by dividing initial tasks. I will try >>> to >>> > >> post the updates actively whenever we achieve significant >>> milestones. I know >>> > >> that we will need your help at many places while doing this work.[?] >>> > >>> > >> Cheers, >>> > >> Devendra >>> > >>> > >> On Thu, Aug 5, 2010 at 8:39 PM, Robson Dantas <biu.dan...@gmail.com >>> >wrote: >>> > >>> > >>> Hi Devendra! >>> > >>> > >>> First, congrats for the initiative. Would be really great having >>> 3legged >>> > >>> library ported to other languages. >>> > >>> > >>> As a 3legged phplib developer, think have enough arguments for you, >>> and >>> > >>> when starting, decided not porting, but creating a simpler version. >>> > >>> > >>> 1) I think the most important thing is having a standard C++ >>> library to >>> > >>> be used, and in fact, it is already done, see: >>> > >>>http://liboauth.sourceforge.net/ >>> > >>> > >>> Basically your work will be related to handle RPC messages and >>> captcha >>> > >>> challenges. >>> > >>> > >>> 2) Orkut guys are busy with their priorities, but when I needed, >>> Prashant >>> > >>> and Shishir (both from Google) kindly helped me. Dont expect to >>> have a >>> > >>> library overview and what you need to do. It's more productive >>> understanding >>> > >>> Orkut OS (java) or Orkut Php OS (php) and also checking fotoscrapr, >>> which >>> > >>> was created using the java lib. >>> > >>> > >>> 3) I'm following Apache 2.0, which is the same for almost >>> opensocial >>> > >>> libs. >>> > >>> > >>> Spent lot of time understanding what was done by Orkut guys, and if >>> you >>> > >>> need any help, just let us know. >>> > >>> > >>> Regards, >>> > >>> > >>> Robson Dantas >>> > >>> > >>> 2010/8/4 Devendra <devendra020...@gmail.com> >>> > >>> > >>> Hi Guys, >>> > >>> > >>>> We are a group of 2-3 Qt developers and we realized that it >>> would >>> > >>>> be >>> > >>>> really helpful not only for us but for many Qt developers if we >>> could >>> > >>>> get orkut java client ported on Qt. So we are planning to port the >>> > >>>> library on Qt. >>> > >>> > >>>> I have a few questions regarding this: >>> > >>> > >>>> 1) What do you think about this idea? >>> > >>>> 2) What kind of support can we expect from orkut team? Can we >>> expect >>> > >>>> some help in understanding over all client library and/or getting >>> > >>>> existing design docs? >>> > >>>> 3) What would be the type of license for such a port? As a >>> > >>>> contributor, will we have any control on licensing of this port? >>> > >>> > >>>> Regards, >>> > >>>> Devendra >>> > >>> > >>>> -- >>> > >>>> You received this message because you are subscribed to the Google >>> > >>>> Groups "orkut Developer Forum" group. >>> > >>>> To post to this group, send email to >>> opensocial-or...@googlegroups.com. >>> > >>>> To unsubscribe from this group, send email to >>> > >>>> opensocial-orkut+unsubscr...@googlegroups.com<opensocial-orkut%2bunsubscr...@googlegroups.com><opensocial-orkut%2Bunsubscrib >>> e...@googlegroups.com> >>> > >>>> . >>> > >>>> For more options, visit this group at >>> > >>>>http://groups.google.com/group/opensocial-orkut?hl=en. >>> > >>> > >>> -- >>> > >>> You received this message because you are subscribed to the Google >>> Groups >>> > >>> "orkut Developer Forum" group. >>> > >>> To post to this group, send email to >>> opensocial-or...@googlegroups.com. >>> > >>> To unsubscribe from this group, send email to >>> > >>> opensocial-orkut+unsubscr...@googlegroups.com<opensocial-orkut%2bunsubscr...@googlegroups.com><opensocial-orkut%2Bunsubscrib >>> e...@googlegroups.com> >>> > >>> . >>> > >>> For more options, visit this group at >>> > >>>http://groups.google.com/group/opensocial-orkut?hl=en. >>> > >>> > >>> > >>> > 330.gif >>> > < 1KViewDownload >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "orkut Developer Forum" group. >>> To post to this group, send email to opensocial-or...@googlegroups.com. >>> To unsubscribe from this group, send email to >>> opensocial-orkut+unsubscr...@googlegroups.com<opensocial-orkut%2bunsubscr...@googlegroups.com> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/opensocial-orkut?hl=en. >>> >>> >> > -- You received this message because you are subscribed to the Google Groups "orkut Developer Forum" group. To post to this group, send email to opensocial-or...@googlegroups.com. To unsubscribe from this group, send email to opensocial-orkut+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/opensocial-orkut?hl=en.