sathiamour / oauth-signpost

Automatically exported from code.google.com/p/oauth-signpost
0 stars 0 forks source link

Make OAuthProvider and OAuthConsumer serializable #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In order to do get request token and get access token in different threads,
it is necessary to save the provider object. Having a serializable instance
simplifies storing and re-creation. 

Original issue reported on code.google.com by pta...@gmail.com on 1 Jul 2009 at 9:41

GoogleCodeExporter commented 8 years ago
This would be an enhancement instead of a defect.

Original comment by pta...@gmail.com on 1 Jul 2009 at 9:44

GoogleCodeExporter commented 8 years ago

Original comment by m.kaepp...@gmail.com on 2 Jul 2009 at 6:47

GoogleCodeExporter commented 8 years ago
This issue was closed by r54.

Original comment by m.kaepp...@gmail.com on 2 Jul 2009 at 9:08

GoogleCodeExporter commented 8 years ago
can someone please test this?

remember that the consumer need not be serialized separately when serializing 
the
provider, since the provider holds a reference to the consumer, and the 
consumer is
serializable. i.o.w:

// when serializing:
serialize(provider) // this also serializes consumer

// when restoring:
OAuthProvider provider = deserialize(source)
OAuthConsumer consumer = provider.getConsumer();

Original comment by m.kaepp...@gmail.com on 2 Jul 2009 at 9:14