Plugin as rack app?

(eriko) #1

So my replacement for the cas plugin is a really really simple rails app that probably should be a rack app. Given that I have started to wonder if it is possible to have a plugin really be a rack app. This would give enough access to the state of discourses internals to make cas slo work and make it easier to deploy the mini app. Any thoughts on if this is possible?

(Sam Saffron) #2

See my blog for an example of how you would do this.

you can make a plugin a rails engine.

(eriko) #3

Ah that is how my searchfu failed. Thanks. Next time I loop back I take a shot at doing this.