-
Notifications
You must be signed in to change notification settings - Fork 188
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
Make omniauth_openid_connect
gem compatible with omniauth v2.0
#95
Make omniauth_openid_connect
gem compatible with omniauth v2.0
#95
Conversation
I hope this one get merged.
|
It's been a long time since there were any updates on this gem. I think at this point you're better off just using your own fork of it, that's what we are doing. I can't see this PR making any more progress than yours was able to I'm afraid. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
What is blocking from merging this one ? |
The project is not being supported anymore it seems. |
Time to have a new project maintainer so ?! |
It looks like someone has already done this #99: |
Sorry for this huge delay. You're right, i could use some help with maintaining this project. Back to subject: just merged very similar PR. Could you please rebase your working branch and resolve conflicts, so i could merge some of these changes. @tim-s-ccs & @formigarafa if you interested in helping me with with maintaining this repo - please let me know |
If I had better knowledge of how it all worked I would but unfortunately I don't. My knowledge doesn't go much beyond 'what changes do I need to make this compatible with |
I'm going to close this as a similar PR was merged which does everything this PR does already, just in a slightly different way regarding one scenario. |
I wouldn't mind giving you a hand with that. I can try. |
will testing this branch and feedback later. |
…0.4.0 * upstream/master: (32 commits) Fix date in CHANGELOG.md Fixes rubocop issues Setup Coveralls.io as Github Action Fix rubocop errors Replace deprecated rubocop_linter_action Update README.md Fix date on CHANGELOG.md Update VERSION to v0.4.0 Update CHANGELOG.md for v0.4.0 Support dynamic parameters to the authorize URI (omniauth#90) Upgrade Faker and replace Travis with Github Actions (omniauth#102) Try to fix rubocop documentation_url not round error. Make `omniauth_openid_connect` gem compatible with `omniauth v2.0` (omniauth#95) Fall back to the discovered jwks when no key specified (omniauth#97) Allow to update omniauth to 2 (omniauth#88) Update README.md Bump version to 0.3.5 bugfix: info from decoded id_token is not exposed (omniauth#61) bugfix: NoMethodError (undefined method `count' for #<OpenIDConnect::ResponseObject::IdToken:0x0000000008d9dde0>): (omniauth#60) Bump version to 0.3.4 ...
As the
omniauth
is now at version > 2.0, I have updatedomniauth_openid_connect
so that it is compatible with the latest version. I also updated the other dependencies so that they use the latest versions as well.There were two major changes I found that needed to be fixed:
omniauth
the following methodsrequest_path
was updated to includescript_name
, The method forscript_name
is:and it would raise an error whenever
request_path
was called as@env
would be nil. Therefore, I added a method intolib/omniauth/strategies/openid_connect.rb
which will return''
if@env
isnil
and will use the method inlib/omniauth/strategy.rb
as normal if@env
is notnil
. This is similar to what was done forsession
already.omniauth
gem for thecurrent_path
inlib/omniauth/strategy.rb
which changed from usingpath_info
to thepath
method aspath_info
has been depreciated. This did not affect the code in the library but it did impact on the tests. This is becausepath_info
was being stubbed. Therefore, I changed the places in the tests wherepath_info
was being stubbed to stubpath
instead.After these changes were made, I was able to run all the test successfully.