Re: debugging

14 views
Skip to first unread message

Michael P. Soulier

unread,
Apr 12, 2013, 2:55:37 PM4/12/13
to Signpost users
On 12/04/13 msoulier said:

> Hi. I wrote an oauth server and now I'm trying to test it with various
> clients. I'm using signpost to test in Java, and I'm seeing a
> disagreement with respect to the HMAC-SHA1 signature.
>
> Two questions.
>
> 1. How do I choose the signature method for a given provider? I want
> to test with HMAC-SHA1 and with PLAINTEXT.

Scratch that, I found setMessageSigner()...

> 2. How do I output the pieces of the signature? I want to dump the
> base string and the key and compare them to what I have on the server.
> I'd rather not have to rebuild the library...

Still digging on this...
signature.asc

msoulier

unread,
Apr 12, 2013, 2:49:42 PM4/12/13
to Signpost users
Hi. I wrote an oauth server and now I'm trying to test it with various
clients. I'm using signpost to test in Java, and I'm seeing a
disagreement with respect to the HMAC-SHA1 signature.

Two questions.

1. How do I choose the signature method for a given provider? I want
to test with HMAC-SHA1 and with PLAINTEXT.

2. How do I output the pieces of the signature? I want to dump the
base string and the key and compare them to what I have on the server.
I'd rather not have to rebuild the library...

Thanks,
Mike

Matthias Käppler

unread,
Apr 12, 2013, 5:51:05 PM4/12/13
to Signpost users

Hi Mike,

try running your app with the -Ddebug property set, this should made the library print e.g. the signature base string to standard out

Regards,
Matthias

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAlFoWKkACgkQKGqCc1vIvgiquACfT1gz6LAkjwYlF6rV+s1OBpVd
OdkAn2rY3JslYkaltJDZE1cI/N5echC8
=stpF
-----END PGP SIGNATURE-----

Michael P. Soulier

unread,
Apr 12, 2013, 9:49:03 PM4/12/13
to signpos...@googlegroups.com
On 12/04/13 Matthias Käppler said:

> Hi Mike,
>
> try running your app with the -Ddebug property set, this should made the
> library print e.g. the signature base string to standard out

Thanks, that helped a lot. Found the problem.

Mike
signature.asc
Reply all
Reply to author
Forward
0 new messages