Skip to content
This repository has been archived by the owner on Aug 25, 2020. It is now read-only.

oauth-webadmin documentation seems to be outdated? #2

Open
rb2k opened this issue Jan 6, 2012 · 1 comment
Open

oauth-webadmin documentation seems to be outdated? #2

rb2k opened this issue Jan 6, 2012 · 1 comment

Comments

@rb2k
Copy link

rb2k commented Jan 6, 2012

This is the suggested syntax for the config.ru:

Rack::Builder.new do
  map("/oauth/admin") { run Rack::OAuth2::Server::Admin }
  map("/") { run MyApp }
end

This results in the folllowing error for me:
"/Users/mseeger/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.0/lib/rack/builder.rb:129:in `to_app': missing run or map statement (RuntimeError)"

Just using:

map("/oauth/admin") { run Rack::OAuth2::Server::Admin }
map("/") { run MyApp }

Seems to work for me though

@kjw
Copy link

kjw commented Dec 7, 2012

Alternatively:

app = Rack::Builder.new do
  map('/oauth/admin') { run Rack::OAuth2::Server::Admin }
  map("/") { run MyApp }
end

run app

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants