Skip to content

Commit

Permalink
Readme tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
mloughran committed May 7, 2010
1 parent 266e6b9 commit 5fb9dc3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
signature
---------
=========

Examples
========
--------

Client example

Expand Down Expand Up @@ -35,6 +35,7 @@ Server example (sinatra)

post '/api/thing' do
request = Authentication::Request.new('POST', env["REQUEST_PATH"], params)
# This will raise a Signature::AuthenticationError if request does not authenticate
token = request.authenticate do |key|
Signature::Token.new(key, lookup_secret(key))
end
Expand All @@ -43,6 +44,6 @@ Server example (sinatra)
end

Copyright
=========
---------

Copyright (c) 2010 Martyn Loughran. See LICENSE for details.

0 comments on commit 5fb9dc3

Please sign in to comment.