No commit activity in last 3 years
No release in over 3 years
This gem authenticates a user by Keycloak OpenID connect protocol.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.13
~> 12.3, >= 12.3.3
~> 3.0

Runtime

~> 1.1, >= 1.1.1
~> 1.3, >= 1.3.1
 Project Readme

OmniAuth::KeycloakOpenID

This is a custom OmniAuth "provider" gem, which authenticates a user via keycloak OIDC protocol.

Installation

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

License

The gem currently has the MIT License license file included, but todate, has NOT been made available as open source.