oauth - How do I configure omniauth use memcached as a backing store with google in classic sinatra app? -
i attempting debug issue doing oauth google when there multiple app servers behind ec2 elb failing. believe issue related fact oauth backing store not being shared. solution had in place worked fine 2+ years, started fail 2 days ago , don't know if configuration issue on end or google changed something.
i believe fix things must use shared store such memcached.
here attempt in classic style sinatra app:
sinatra::application.use ::omniauth::strategies::openid openid::store::memcache.new(memcached.new('my_memcached_machine')) end
unfortunately still has not resolved issue. far can tell, omniauth never doing or set requests memcached.
is correct way omniauth use memcached while attempting authenticate google in classic-style sinatra app?
here 1 approach have discovered works, i'm sure there better way...
module rack class openid def initialize(app, store = nil) @app = app @store = ::openid::store::memcache.new(openidmemcachedmanager.new('...')) end end end
Comments
Post a Comment