mgomes / api_auth

HMAC authentication for Rails and HTTP Clients
MIT License
480 stars 147 forks source link

Fix header regex. #115

Closed packrat386 closed 8 years ago

packrat386 commented 8 years ago

The previous regex would match any number of instances of any of the supported SHA formats, e.g. SHA111. Instead of matching any number, we want to match optionally one.

Also added some tests that this rejects invalid digest formats.