Donbenorden / oauth-signpost

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

HmacSha1MessageSigner.java needs to be serializable #52

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

Trying to utilize signpost for web-based Google application,
which requires redirect to the Google site to get the user's
authorization, then coming back to the original page, I found
the need of serializing the OAuthConsumer & OAuthProvider as
the insyances are necessary when the original page receives
the control back from the Google site.

The serialization attempt results in en exception as one of
the filed is not serialzable - the class HmacSha1MessageSigner.

After fixing the HmacSha1MessageSigner, successfully generated
the access token and secret.
-------------------------------------------------------------
public class HmacSha1MessageSigner extends OAuthMessageSigner
                                   implements Serializable {

        private static final long serialVersionUID = 100L;
-------------------------------------------------------------

Original issue reported on code.google.com by pieca...@gmail.com on 7 Jun 2010 at 1:21