nbudin / devise_cas_authenticatable

CAS authentication support for Devise
MIT License
285 stars 117 forks source link

cas_authenticatable strategy always returns 401 when using FakeCAS #156

Open jacobwalkr opened 3 years ago

jacobwalkr commented 3 years ago

In test, RackCAS's Fake CAS always seems to redirect back to CasAuthenticatableController#new, which always returns 401, which creates a loop. It does create the session correctly but after signing in with Fake CAS, you have to manually navigate back to your app.

Is it worth checking for an existing session in CasAuthenticatableController#new before returning 401?