Sorry - I was replying 2 minutes after waking up, and going back to
sleep after hitting send..
I meant to say I was doing a how-to implement service-provider.. or
well.. I can do both.. ;)
And you can do the implementation without changing the library..
In short
1) Implement a class that has the same functionality as the data
storage class
2) Create the end-points for request_token, authorize, access_token
2.1) request_token should use the server's method for getting a
new request-token
2.2) authorize should get the request-token from the request,
then set the request-token as authorized
2.3) access_token should use the server's method for exchanging
to a access-token
2.3.1) your data storage class for exchanging should remove the
request-token
3) Create API endpoints
3.1) Use the server's verify-request method to check the validity
of the OAuth parameters
The longer, with code examples, explanation will have to wait till the
weekend..
-M
On Mar 6, 2009, at 9:18 AM, Grace Cai wrote:
> Thanks for responding!
>
> But I need a how-to on service provider not a consumer implemention.
> I am data/service provider.
>
> I had a look at the librarys, but looks a bit fuzzy to me.
> It looks like I can't use it directly without modifications.
> I have to customize the library to make it work on our own server,
> is it correct?
>
> Thanks and regards
> Grace
> On Fri, Mar 6, 2009 at 4:20 PM, Morten Fangel <[email protected]
> > wrote:
> You can try and look at the example code in
> http://oauth.googlecode.com/svn/code/php/example/
>
> I've been wanting to write a how-to on consumer implementation, and
> it might as well be this weekend I do..
>
> So, look at the examples and/or wait a few days till I've written a
> proper how-to..
>
> Regards
> Morten
>
> On Mar 5, 2009, at 11:54 PM, Grace Cai wrote:
>
>> Nobody can help me on this, help! help!
>>
>>
>> On Tue, Mar 3, 2009 at 3:33 PM, Grace <[email protected]> wrote:
>> Hi everyone,
>>
>> I am new to oAuth & opensocial. A bit confused on oAuth issue.
>>
>> I am trying to build an opensocial api that enable end user add in
>> the
>> google, via this api, they would be able to access the private data
>> on
>> our web application(our server).
>>
>> After reading some docs, I now understand that our server needs to be
>> oAuth enabled. However, I am a bit confused, how to be oAuth service
>> provider enabled? Do I need to write my own codes to implement oAuth
>> or is any library that I can used directly? I am using php on our
>> server.
>>
>> Thanks in advance!
>>
>>
>>
>> --
>> Best Regards
>>
>> Grace
>>
>>
>>
>
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"OAuth" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/oauth?hl=en
-~----------~----~----~----~------~----~------~--~---