Omniauth / auth / facebook / callback.json - request.env ["omniauth.auth"] nil

Specifically:

My Rails app works great if I call

/auth/facebook/callback or /auth/facebook/callback?format=json

but when i try to call

/auth/facebook/callback.json

no request.env["omniauth.auth"] (it nil)

Any ideas on what's going on?

+4
source share
1 answer

Since the .json extension for the URL means that you have either the .json view for this method, or respond to the json format.

Although this should be omniauth handling in the redirect ... it cannot work.

0
source

All Articles