square / rails-auth

Modular resource-based authentication and authorization for Rails/Rack
Apache License 2.0
291 stars 23 forks source link

Rails::Auth is incompatible with Ruby 3.1 #73

Closed petergoldstein closed 3 months ago

petergoldstein commented 2 years ago

Because of an underlying issue with the certificate_authority gem, Rails::Auth currently can't be used with Ruby 3.1.

The OpenSSL::Config was made immutable in Ruby 3.1. The certificate_authority gem attempts to mutate an instance of that class, which fails in Ruby 3.1.

I've submitted a PR against certificate_authority to help resolve this issue - https://github.com/cchandler/certificate_authority/pull/60 . This fix (or an alternate) will need to be merged and a new version released to enable Ruby 3.1 for Rails::Auth.

petergoldstein commented 2 years ago

I've put up a PR on my fork that, when there's a certificate_authority update, will address the remaining Ruby 3.1 issues (basically Rubocop) - https://github.com/petergoldstein/rails-auth/pull/1

nerdrew commented 3 months ago

I think this is resolved now b/c the certificate_authority PR was merged.