setTokenWithSecret and setMessageSigner

27 views
Skip to first unread message

Christian Csar

unread,
Jan 7, 2014, 10:54:06 PM1/7/14
to signpos...@googlegroups.com
I spent a decent amount of time helping a coworker setting up SignPost with our OAuth infrastructure. The problem we ran into was that he had called setTokenWithSecret before calling setMessageSigner. Calling setMessageSigner will cause AbstractOAuthConsumers to lose the token secret, this limitation does not appear to be documented (at least not in the API documentation).
    public void setTokenWithSecret(String token, String tokenSecret) {
        this.token = token;
        messageSigner.setTokenSecret(tokenSecret);
    }
Ideally this should be changed or documented.

Christian

Matthias Käppler

unread,
Jan 15, 2014, 2:03:02 AM1/15/14
to Signpost users

Good catch.

+1

Reply all
Reply to author
Forward
0 new messages