This is a custom OmniAuth "provider" gem, which authenticates a user via keycloak OIDC protocol.
Add this line to your application's Gemfile:
gem 'omniauth-keycloak-openid'
And then execute:
$ bundle
Or directly install and add to Gemfile it yourself as:
$ bundle add omniauth-keycloak-openid
In omniauth.rb file
Rails.application.config.middleware.use OmniAuth::Builder do
provider :keycloak_openid, ENV['CLIENT_ID'], ENV['CLIENT_SECRET'], scope: "openid profile email", redirect_uri: 'http://localhost:3000/auth/keycloak_openid/callback'
end
The gem currently has the MIT License license file included, but todate, has NOT been made available as open source.