Josh, Adam,
Will do.
Based on a quick read through rack-oauth2-server (ro2s from here on out), I think I have to rip it apart and make a Goliath or EM-friendly filter, since it includes mongo calls and models inside the filter.
Is there an automagical replacement for mongo calls that I'm not thinking about (basically a monkey patch that exists)?
All the calls in the model object are on the mongo gem's connection object and follow this basic pattern:
conn = Mongo::Connection.new["my_db"]
conn["oauth2.access_grants"].<insert | update | find_one>
I need to get up to speed on EM::Mongo and the synchrony patches anyway to fix the connection pool limitation in Goliath anyway, so I guess that'll be my first stop if there isn't an easy answer to this.
Sujal