Conversation
There was a problem hiding this comment.
Pull request overview
This PR aims to reduce required gem dependencies for omniauth-keycloak consumers by removing json-jwt usage in favor of the jwt gem (already pulled in via omniauth-oauth2), and includes CI/RuboCop maintenance updates.
Changes:
- Replace
json-jwtdependency/require withjwt. - Refactor
setup_phaseby extracting OpenID configuration and JWKS fetching into private helper methods. - Update CI workflows to run on pushes to any branch and bump checkout action version; regenerate RuboCop TODOs.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| omniauth-keycloak.gemspec | Swap json-jwt dependency for jwt. |
| lib/omniauth/strategies/keycloak.rb | Switch JWT handling libraries and refactor Keycloak discovery/JWKS fetching. |
| .rubocop_todo.yml | Regenerated RuboCop TODO configuration. |
| .github/workflows/rubocop.yml | Run on any push; bump checkout action version. |
| .github/workflows/ci.yml | Run on any push. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This is an effort to reduce the number of gems consumers need to install in their application. Since `omniauth-keycloak` depends on `omniauth-oauth2`, and the latter includes the `jwt` gem, we don't need to depend on `json-jwt`.
0b40cb6 to
814a10b
Compare
|
@copilot review again. |
Extracts fetching of configuration and certificates into seperate methods.
814a10b to
0aac548
Compare
0aac548 to
6a57496
Compare
Reviewed. The method |
365b031 to
6a57496
Compare
Using `OmniAuth.config.test_mode` masks a lot of code that is otherwise not tested. This adds a full-stack integration spec (using Rack::Test as mock Keycloak server). Agent-Logs-Url: https://github.com/dmke/omniauth-keycloak/sessions/45616c39-f544-4ee7-b58e-531f3701792c Co-authored-by: dmke <327411+dmke@users.noreply.github.com>
(This is a duplicate of ifad#25, but I want to see what Copilot is capable of.)