Sha256: b8c7915d501b91f9bf52f57374e3fd5ecbb6edfc84d93f917e59d198210307db

Contents?: true

Size: 560 Bytes

Versions: 16

Compression:

Stored size: 560 Bytes

Contents

class << Rails
  def vendor_rails?
    false
  end
end

Rails::Initializer.run do |config|
  config.frameworks = [ :action_controller ]
  config.action_controller.session = { :key=>"_myapp_session", :secret=>"Stay hungry. Stay foolish. -- Steve Jobs" }

  config.after_initialize do
    config.oauth.database = DATABASE
    config.oauth.host = "example.org"
    config.oauth.authenticator = lambda do |username, password|
      "Batman" if username == "cowbell" && password == "more"
    end
  end
  config.middleware.use Rack::OAuth2::Server::Admin.mount
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
rack-oauth2-server-2.3.0 test/rails2/config/environment.rb
rack-oauth2-server-2.2.2 test/rails2/config/environment.rb
tpitale-rack-oauth2-server-2.2.1.2 test/rails2/config/environment.rb
tpitale-rack-oauth2-server-2.2.1.1 test/rails2/config/environment.rb
tpitale-rack-oauth2-server-2.2.1 test/rails2/config/environment.rb
rack-oauth2-server-2.2.1 test/rails2/config/environment.rb
rack-oauth2-server-2.2.0 test/rails2/config/environment.rb
rack-oauth2-server-2.1.0 test/rails2/config/environment.rb
rack-oauth2-server-2.0.1 test/rails2/config/environment.rb
rack-oauth2-server-2.0.0 test/rails2/config/environment.rb
rack-oauth2-server-2.0.0.beta6 test/rails2/config/environment.rb
rack-oauth2-server-2.0.0.beta5 test/rails2/config/environment.rb
rack-oauth2-server-2.0.0.beta4 test/rails2/config/environment.rb
rack-oauth2-server-2.0.0.beta3 test/rails2/config/environment.rb
rack-oauth2-server-2.0.0.beta2 test/rails2/config/environment.rb
rack-oauth2-server-2.0.0.beta test/rails2/config/environment.rb