Skip to content

Commit

Permalink
fixed code highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
Xylakant committed Jul 1, 2011
1 parent 220b8d2 commit b389800
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Expand Up @@ -125,15 +125,15 @@ configuration option.
The `:require_nonce` configuration can be set to `true` to enforce a nonce. If a nonce is required no authentication attempt will be
made for requests not providing a nonce.

use Warden::Manager do |manager|
manager.failure_app = -> env { [401, {"Content-Length" => "0"}, [""]] }
# other scopes
manager.scope_defaults :hmac, :strategies => [:hmac_query, :hmac_header],
:hmac => {
:secret => "secrit",
:require_nonce => true
}
end
use Warden::Manager do |manager|
manager.failure_app = -> env { [401, {"Content-Length" => "0"}, [""]] }
# other scopes
manager.scope_defaults :hmac, :strategies => [:hmac_query, :hmac_header],
:hmac => {
:secret => "secrit",
:require_nonce => true
}
end


## Required headers and parameters
Expand Down

0 comments on commit b389800

Please sign in to comment.