These are chat archives for padrino/padrino-framework
wikimatzehave you read our guide: http://padrinorb.com/blog/padrino-and-omniauth-overview/
wikimatzeI have not tried it so far ... maybe this can help you
wikimatzeif not, we need to update the guide
wikimatzegreat, did you get it working nearly the same way as described in the guides?
wikimatzeDid you found an easier way?
Try this: # in app.rb class Fuitter::App get '/auth/facebook/callback' do "Hello World" end end
app/app.rb – This is the primary configuration file for your core application.
wikimatzeyou can put it there ... but it would be better to create a custom controller with only that route
wikimatzeso a route in the way:
wikimatzeget :auth, :map => '/auth/:provider/callback' do
wikimatzedoes not work
wikimatzesession controller would be the right way to do it
wikimatzeTo get it working and go on, just go on with the app/app.rb solution
wikimatzemaybe you can create a branch for it.
wikimatzecan you print rake routes
wikimatzethere should be your session controller route be listed
u are right, my route looked somethign like this
get '/auth/:provider/callback' do ap request.env["omniauth.auth"] redirect '/' end
and it was not showing up in the rake routes
wikimatzeI think you missed a named route, like get :auth ...
get :auth, '/aiuth' ....
wikimatzeawesome, would you mind to review the guide from http://padrinorb.com/blog/padrino-and-omniauth-overview/
wikimatzesince it's only (sadly) a blog entry, we should consider putting this into the guides for everyone
wikimatzeyou can find the file under https://github.com/padrino/padrino-docs/blob/master/blog/2011-05-10-padrino-and-omniauth-overview.html.md
# at the top before the class definitionbut it actually should be before
wikimatzethanks for the great contributions
wikimatzeAfzer sushant12 was so nice to update the docu for oauth and facebook (padrino/padrino-docs#145), I've moved this guide from the blog to the official guide under the "Advanced