ayoubAnbara / singular-keycloak-database-federation

Keycloak User Storage SPI for Relational Databases (Keycloak User Federation, supports postgresql, mysql, oracle and mysql)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

singular-keycloak-database-federation

Compatible with Keycloak 17+ quarkus based.

**For older versions look at older_versions branch.

Keycloak User Storage SPI for Relational Databases (Keycloak User Federation, supports postgresql, mysql, oracle and mysql).

  • Keycloak User federation provider with SQL
  • Keycloak User federation using existing database
  • Keycloak database user provider
  • Keycloak MSSQL Database Integration
  • Keycloak SQL Server Database Integration
  • Keycloak Oracle Database Integration
  • Keycloak Postgres Database Integration
  • Keycloak blowfish bcrypt support

Usage

Fully compatible with Singular Studio NOCODE. See https://www.studio.opensingular.com/

Configuration

Keycloak User Federation Screen Shot

Sample Screenshot

There is a new configuration that allows keycloak to remove a user entry from its local database (this option has no effect on the source database). It can be useful when you need to reload user data. This option can be configured by the following switch:

Sample Screenshot

Limitations

- Do not allow user information update, including password update
- Do not supports user roles our groups

Custom attributes

Just add a mapper to client mappers with the same name as the returned column alias in your queries.Use mapper type "User Attribute". See the example below:

Sample Screenshot 2

Build

- mvn clean package

Deployment

1) Copy every  `.jar` from dist/ folder  to  /providers folder under your keycloak installation root. 
    - i.e, on a default keycloak setup, copy all  `.jar` files to <keycloak_root_dir>/providers
2) run :
    $ ./bin/kc.sh start-dev
OR if you are using a production configuration:
    $ ./bin/kc.sh build
    $ ./bin/kc.sh start

For futher information see:

- https://github.com/keycloak/keycloak/issues/9833
- https://www.keycloak.org/docs/latest/server_development/#packaging-and-deployment

About

Keycloak User Storage SPI for Relational Databases (Keycloak User Federation, supports postgresql, mysql, oracle and mysql)

License:Apache License 2.0


Languages

Language:Java 99.3%Language:Shell 0.7%