omniauth_openid_connect icon indicating copy to clipboard operation
omniauth_openid_connect copied to clipboard

Getting a routing error after initialization

Open adminkla opened this issue 1 year ago • 3 comments

Hello all,

I'm getting a routing error for the logout endpoint (RuntimeError (undefined method `match?' for /\A/admin/auth/openid_connect(/logout)/:Regexp):)

My application setup is ruby version - 2.2.2 Devise version - 4.9

Gem setup for OIDC gem 'omniauth', '~> 1.9.2' gem 'openid_connect', '~> 1.1' gem 'omniauth_openid_connect', '~> 0.3.5'

Tried a lot of changes on this but getting this error everytime when going to any app's endpoint, Please help me out on this

adminkla avatar Mar 06 '24 13:03 adminkla

https://ruby-doc.org/core-2.4.0/Regexp.html#method-i-match-3F It seems like match? was added in Ruby 2.4, so that is why :/

davidwessman avatar Mar 07 '24 06:03 davidwessman

https://ruby-doc.org/core-2.4.0/Regexp.html#method-i-match-3F It seems like match? was added in Ruby 2.4, so that is why :/

But in the gemstore required ruby version is >= 0. Even in the RUNTIME DEPENDENCIES ruby version is >=2.2.2. Kindly suggest a way

adminkla avatar Mar 07 '24 12:03 adminkla

Yes, that is probably incorrect.

If you need to use Ruby 2.2.2 you should probably fork it and change it to work for yourself, it will not be maintained. Maybe updating ruby would be possible? As far as I remember Ruby 2.2 to 2.4 was not as big as e.g. 2.7 to 3.0

davidwessman avatar Mar 08 '24 06:03 davidwessman