devise icon indicating copy to clipboard operation
devise copied to clipboard

CAS strategy not usable due to naming issues

Open iain opened this issue 15 years ago • 2 comments

In Devise master, when I try to use the CAS strategy, I have to use:

config.omniauth :c_a_s, :cas_server => 'blah'

for it to pick up. If I then link to user_omniauth_authorize_path(:c_a_s), it fails because it doesn't know the route /users/auth/c_a_s. I can't do user_omniauth_authorize_path(:cas), because that is not registered as a provider. (error here).

When I manually go to /users/auth/cas, it will redirect me to the cas server, but when I come back, it will error because no route matches /users/auth/cas/callback. It needs to go to /users/auth/c_a_s/callback.

I'm guessing the same problem exists for LDAP, because it too uses all caps. Omniauth has a weird hack to make it work in their case.

iain avatar Jan 18 '11 13:01 iain

Be sure to use OmniAuth 0.2.0.beta2 to be able to write config.omniauth :cas, :cas_server => 'blah'. It works for me. OmniAuth 0.1.6 and earlier won't work.

oruen avatar Jan 18 '11 13:01 oruen

will try that, thanks

iain avatar Jan 18 '11 14:01 iain