From 5fb9dc3f404524ac87af84262d80fa99030cc2e7 Mon Sep 17 00:00:00 2001 From: Martyn Loughran Date: Fri, 7 May 2010 12:40:16 +0100 Subject: [PATCH] Readme tweaks --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 54041e1..19d4dbc 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ signature ---------- +========= Examples -======== +-------- Client example @@ -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 @@ -43,6 +44,6 @@ Server example (sinatra) end Copyright -========= +--------- Copyright (c) 2010 Martyn Loughran. See LICENSE for details.