Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1 from adamluzsi/master
Browse files Browse the repository at this point in the history
update rack middleware example part
  • Loading branch information
boogie committed Jun 23, 2015
2 parents d646c70 + bfd6d0a commit 0ce1705
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source 'https://rubygems.org'

gem 'escher-keypool', '>= 0.0.1'
gem 'escher-rack_middleware', '>= 0.1.2'
gem 'escher-rack_middleware', '>= 0.1.3'
gem 'rack', '>= 1.6.0'
gem 'webrick', '>= 1.3.1'
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -2,10 +2,10 @@ GEM
remote: https://rubygems.org/
specs:
addressable (2.3.8)
escher (0.3.3)
escher (0.3.4)
addressable (~> 2.3)
escher-keypool (0.0.1)
escher-rack_middleware (0.1.2)
escher-rack_middleware (0.2.0)
escher (>= 0.3.3)
rack (1.6.0)
webrick (1.3.1)
@@ -15,6 +15,6 @@ PLATFORMS

DEPENDENCIES
escher-keypool (>= 0.0.1)
escher-rack_middleware (>= 0.1.2)
escher-rack_middleware (>= 0.1.3)
rack (>= 1.6.0)
webrick (>= 1.3.1)
2 changes: 1 addition & 1 deletion lib/escher/rack_middleware.rb
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
Escher::RackMiddleware.config do |c|

# for read more about escher auth object initialization please visit escherauth.io
c.add_escher_authenticator(Escher::Auth.new(CredentialScope, AuthOptions))
c.add_escher_authenticator{ Escher::Auth.new(CredentialScope, AuthOptions) }

# this will be triggered every time a request hit your appication
c.add_credential_updater { Escher::Keypool.new.get_key_db }

0 comments on commit 0ce1705

Please sign in to comment.