Giter Site home page Giter Site logo

Comments (2)

Landon-Alo avatar Landon-Alo commented on June 1, 2024 1

Thanks @metaskills for the quick response. This has helped me rule out any weirdness with the handler. I have some new clues to go on and will keep looking. Thank you!

from lamby.

metaskills avatar metaskills commented on June 1, 2024

Interesting. There are some advanced configs I called out needing documentation in the #138 issue. Normally Rails has lots of middlewares. None of these require the handler to have any knowledge since they all work with Rack (your Rails app) simply by running the application. For example, ActiveRecord's database/shard middlewares. They get wrapped up as part of the application booting via all your standard configurations, gems, etc. I'd be surprised that Omniauth Auth0 was not the same.

That said, there is a configuration to customize the Rack application that the (also configurable) handler sends events to. You can see the default here. https://github.com/customink/lamby/blob/master/lib/lamby/config.rb#L34-L36. I think one valid use case would be doing thing you might normally do in a config.ru file. So to configure the "rack_app" you could add a config/initializers/lamby.rb file with something like this:

Lamby.config.rack_app = Rack::Builder.new do
  map ENV['RAILS_RELATIVE_URL_ROOT'] do
    run Rails.application
  end
end.to_app

from lamby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.