Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ayerdines/omniauth-keycloak-openid
OmniAuth strategy for Keycloak OIDC
https://github.com/ayerdines/omniauth-keycloak-openid
keycloak saml2 single-sign-on sso sso-authentication sso-login
Last synced: 5 days ago
JSON representation
OmniAuth strategy for Keycloak OIDC
- Host: GitHub
- URL: https://github.com/ayerdines/omniauth-keycloak-openid
- Owner: ayerdines
- License: mit
- Created: 2020-03-25T15:47:29.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-15T08:01:11.000Z (about 4 years ago)
- Last Synced: 2025-01-12T11:50:50.917Z (18 days ago)
- Topics: keycloak, saml2, single-sign-on, sso, sso-authentication, sso-login
- Language: Ruby
- Homepage:
- Size: 7.81 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# OmniAuth::KeycloakOpenID
This is a custom [OmniAuth](https://github.com/omniauth/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
```ruby
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](http://opensource.org/licenses/MIT) license file included, but todate, has NOT been made available as open source.