All Projects → kyrcha → keycloak-mysql-user-federation

kyrcha / keycloak-mysql-user-federation

Licence: Apache-2.0 License
Keycloak user federation extension to connect to a MySQL database containing users

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to keycloak-mysql-user-federation

keycloak-restrict-client-auth
A Keycloak authenticator to restrict authorization on clients
Stars: ✭ 34 (+100%)
Mutual labels:  keycloak, keycloak-spi
brauzie
Awesome CLI for fetching JWT tokens for OAuth2.0 clients
Stars: ✭ 14 (-17.65%)
Mutual labels:  keycloak
keycloak-sso-configs
common keycloak single sign on configurations
Stars: ✭ 19 (+11.76%)
Mutual labels:  keycloak
react-native-keycloak
React Native components for Keycloak
Stars: ✭ 114 (+570.59%)
Mutual labels:  keycloak
beercloak
BeerCloak: a comprehensive Keycloak extension example
Stars: ✭ 110 (+547.06%)
Mutual labels:  keycloak
epiphany
Cloud and on-premises automation for Kubernetes centered industrial grade solutions.
Stars: ✭ 114 (+570.59%)
Mutual labels:  keycloak
keycloak-home-idp-discovery
Keycloak: Home IdP Discovery - discover home identity provider or realm by email domain
Stars: ✭ 42 (+147.06%)
Mutual labels:  keycloak
ProxyInjector
A Kubernetes controller to inject an authentication proxy container to relevant pods - [✩Star] if you're using it!
Stars: ✭ 77 (+352.94%)
Mutual labels:  keycloak
keyonic-v2
A Keycloak Mobile Implementation using Angular v4 and Ionic v3
Stars: ✭ 23 (+35.29%)
Mutual labels:  keycloak
keycloakify
🔏 Create Keycloak themes using React
Stars: ✭ 451 (+2552.94%)
Mutual labels:  keycloak
secure-oauth2-oidc-workshop
Hands-On Workshop for OAuth 2.0 and OpenID Connect 1.0
Stars: ✭ 58 (+241.18%)
Mutual labels:  keycloak
keycloak-heroku
Deploy Keycloak to Heroku using a slightly adapted version of the official docker image
Stars: ✭ 47 (+176.47%)
Mutual labels:  keycloak
keycloak-sms-authenticator-sns
SMS 2 Factor Authentication for Keycloak via AWS SNS
Stars: ✭ 66 (+288.24%)
Mutual labels:  keycloak
keycloak-radius-plugin
Make the radius server as part of keycloak SSO
Stars: ✭ 102 (+500%)
Mutual labels:  keycloak
keycloak-docker
Docker image for Keycloak 6.0.1 (postgres, ssl) + k8s + Openshift
Stars: ✭ 19 (+11.76%)
Mutual labels:  keycloak
springboot-keycloak-openldap
The goal of this project is to create a simple Spring Boot REST API, called simple-service, and secure it with Keycloak. Furthermore, the API users will be loaded into Keycloak from OpenLDAP server.
Stars: ✭ 96 (+464.71%)
Mutual labels:  keycloak
kibana-keycloak
Secure kibana dashboards using keycloak
Stars: ✭ 40 (+135.29%)
Mutual labels:  keycloak
keycloak-session-restrictor
Simple event-listener for Keycloak which restricts the current user sessions to one (last one wins) only. Demo purposes only!
Stars: ✭ 48 (+182.35%)
Mutual labels:  keycloak
keycloak-mail-whitelisting
Keycloak extension to whitelist email adresses domain when users register
Stars: ✭ 36 (+111.76%)
Mutual labels:  keycloak
gocloaksession
Maintains an active keycloak session using gocloak
Stars: ✭ 15 (-11.76%)
Mutual labels:  keycloak

keycloak-mysql-user-federation

Keycloak user federation extension to connect to a MySQL database containing users. For creating it I followed this guide from the official documentation.

Installation

Clone the repository:

git clone https://github.com/kyrcha/keycloak-mysql-user-federation.git

Build the fat jar:

gradle shadowJar

Instruction for installing gradle build system can be found in the official docs.

I am using the Gradle Shadown Plugin to generate a fat jar containing all dependencies inside the jar file so that they are bundled together when deployed to keycloak.

Have a Keycloak running server. I am using docker here:

docker run -p 8080:8080 --name keycloak_sso -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=admin quay.io/keycloak/keycloak:10.0.1

Copy the jar file inside the standalone folder (was using windows when I wrote this :) ):

docker cp build\libs\keycloak-mysql-user-federation-all.jar keycloak_sso:/opt/jboss/keycloak/standalone/deployments/keycloak-mysql-user-federation.jar

Keycloak should load the jar:

Go to user federation and choose the User Federation:

Add the following properties:

  • The database connection
  • The table containing the users
  • The column with the username
  • The column with the password
  • The hash algorithms: MD5 or SHA1

Save and test.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].