omniauth / omniauth_openid_connect

MIT License
157 stars 186 forks source link

Getting a routing error after initialization #176

Open adminkla opened 4 months ago

adminkla commented 4 months ago

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

davidwessman commented 4 months ago

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 :/

adminkla commented 4 months ago

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

davidwessman commented 4 months ago

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