Skip to content
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

Getting a routing error after initialization #176

Open
adminkla opened this issue Mar 6, 2024 · 3 comments
Open

Getting a routing error after initialization #176

adminkla opened this issue Mar 6, 2024 · 3 comments

Comments

@adminkla
Copy link

adminkla commented Mar 6, 2024

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
Copy link
Contributor

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
Copy link
Author

adminkla commented Mar 7, 2024

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants