You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Callback path isn't aware of sub-directory placement #753
I'm using rails 4 and omniauth-ldap,deploying with warbler in glassfish. Looking through the source its grabbing callback_path from omniauth core.
For some reason the rest of the rails app works fine, even the login pages, but the callback URL is going to the root of the webserver, this conflicts with how glassfish is deploying the applications.
To be honest I'm not sure if this is being covered by rails automagic everywhere else, or jboss/glassfish magic, but it's causing issues with omniauth. Does anyone know of an elegant way to fix it?. It works fine in development which isn't put in a subfolder, but doesn't in production and the jboss/glassfish subfolder.
Thats acceptable as a workaround, but now I would have to be checking am I in development or am I in production and setting the URL accordingly, somewhat annoying as the rest of rails works fine, just omniauth fails to generate the correct routes.
I've found this aswell heartcombo/devise#875
Though it was closed with no resolution.
It would probably be nicer to have omniauth generate the correct URLs in the first place.
Activity
tmilewski commentedon Jun 16, 2014
You're able to change the callback path via the
:callback_pathoption.https://github.com/intridea/omniauth/blob/edc97c636af6dd8a657cb8ab69e8d8bbcac21c65/spec/omniauth/strategy_spec.rb#L442
https://github.com/intridea/omniauth/blob/edc97c636af6dd8a657cb8ab69e8d8bbcac21c65/lib/omniauth/strategy.rb#L383
btrepp commentedon Jun 17, 2014
Thats acceptable as a workaround, but now I would have to be checking am I in development or am I in production and setting the URL accordingly, somewhat annoying as the rest of rails works fine, just omniauth fails to generate the correct routes.
I've found this aswell
heartcombo/devise#875
Though it was closed with no resolution.
It would probably be nicer to have omniauth generate the correct URLs in the first place.
aldanor commentedon Mar 10, 2015
+1, afaik this is still not resolved?