Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (14 sloc) 0.668 kB

HMAC

This gem provides a warden strategy that validates type 3 G2O requests for use with the Akamai G2O implementation.

Warden strategy usage

Configure the G2O warden strategy:

use Warden::Manager do |manager|
  manager.failure_app = -> env { [401, {"Content-Length" => "0"}, [""]] }
  # other scopes
  manager.scope_defaults :g2o, :strategies => [:g2o], 
                                 :store => false, 
                                 :g2o => { 
                                   :secret => "secrit",
                                 }
end

secret allows you to specify the secret used for the HMAC algorithm.

Jump to Line
Something went wrong with that request. Please try again.