OAuth 1.0a test strings for the taking - get them while they're hot

Say, hypothetically, you were re-factoring a lot of code that verifies OAuth 1.0a signatures.  You would probably want a comprehensive list of strings to test against, no?  @episod and @danadanger created the OAuth UTF-8 character map, and I adapted that into a YML file of just the test strings.  Hope you find it useful.  I'm bashing some code against it right now.  You get some stuff that looks like the following:

--- 
tests: 
  inputs: 
  - 23456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abc
  - !binary |
    ZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXp7fH1+f8KAwoHCgsKDwoTChcKGwofC
    iMKJworCi8KMwo3CjsKPwpDCkcKSwpPClMKV

  - !binary |
    wpbCl8KYwpnCmsKbwpzCncKewp/CoMKhwqLCo8KkwqXCpsKnwqjCqcKqwqvC
    rMKtwq7Cr8KwwrHCssKzwrTCtcK2wrfCuMK5wrrCu8K8wr3CvsK/w4DDgcOC
    w4PDhMOFw4bDhw==

 

Comments (0)

Leave a comment...

About