nbudin / devise_cas_authenticatable

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

Disable SingleSignOut on selected API routes #157

Closed karticodes closed 2 years ago

karticodes commented 3 years ago

I am working on a RoR app which uses this gem. The app contains both the web app and APIs. Whenever the API is called, it also performs DeviseCasAuthenticatable::SingleSignOut::StoreSessionId#call which is not desirable. Though it is not creating any major issues, it is slightly increasing the API latency.

Is there way to disable this?

nbudin commented 3 years ago

Hi @karticodes, if you want you can try upgrading to the pre-release 2.0.0.alpha1 version of this gem. It significantly reduces the complexity of the gem and removes the DeviseCasAuthenticatable::SingleSignOut module entirely (because rack-cas now handles single sign-out for us). It should improve your performance a bit.

nbudin commented 2 years ago

Now that version 2.0.0 is out, this should no longer be an issue. Closing; if it still is a problem with 2.0.0 please let me know!