-
-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spec is failing on rails 5 (devise 4.2.0) #132
Comments
Spec is still failing? Still, is it fully compatible with Rails 5 / Ruby 2.5.0? |
@MarcReniu thanks for the bump. The test suite hasn't really been working right since Rails 4, as you know. I think this has something to do with the really awful shenanigans we're using to fake out a CAS server in the dummy app, which suggests that the gem itself is fine even though the test suite fails (although I'm not actually positive that's true). The truth is, I haven't had a lot of energy to put into this gem recently. If you have time to look into this and figure out a way to make the dummy app work with Rails 4 and up, I would be very happy to review and merge a PR. |
I've had a stab at getting the specs running under Rails 5.2 (most likely with breaking changes for earlier versions) and Devise 4.4.3. I have all but one spec passing. Relevant forks: The one failing spec: It appears to go into an infinite loop of redirection. With a local Gemfile containing:
|
Cool, thank you @sauy7! That's a whole bunch of work you put in and I really appreciate it. I think you're probably right that these are breaking changes for earlier versions of Rails. At this point I'm more than OK dropping support for earlier versions and releasing a major version update to signal that it's a breaking change. Would you like me to merge in your changes now, or wait and see about the one failing spec? |
@nbudin I'm a little worried about the failing spec as an infinite loop is nasty. That said, I don't use a Custom Warden Failure App, so I've no motivation to look into that part. I may also not use CAS at all for my SSO needs, I'm just evaluating different options right now. Perhaps others following this issue could chime in on fixing the last failing spec? |
@sauy7 In the case of this particular use case, I don't think it matters whether you use a custom Warden failure app, because Re choosing whether to use CAS or not: to be totally frank, I would recommend not using CAS for a new SSO implementation today. There are better options out there now, and I myself am trying to migrate off it in favor of OAuth2, since it has a much better ecosystem in Ruby. (I realize OAuth2 isn't an authentication solution per se, but it's good enough for what I need it to do.) |
@nbudin I think I've come to the same conclusion (OAuth2) :) |
Hi ,
I am getting these two issue while running test suite.
rails version = 5.0.0.1
ruby = 2.3.0p0
devise = 4.2.0
devise_cas_authenticatable = 1.9.2
Let me know If I miss something in code.
Thanks in Advance
@nbudin : Any idea about this ?
The text was updated successfully, but these errors were encountered: