Skip to content

for-keycloak/keycloak-spi-fix-organization-username-form

Repository files navigation

🔗 Keycloak Organization Username Form fix GitHub release (latest by date)

Caution

This SPI is not meant for public use.

It solves a very specific issue mentionned below.

Use at your own risk.

This fixes the issue when using a separate username and password form while organizations are enabled in keycloak.

See keycloak/keycloak#42192 for more details.

Installation

Option 1: Using Docker

Add the following to your Dockerfile:

# Download and install the authenticator
ARG ORG_USERNAME_FIX_VERSION="v2.0.0" # x-release-please-version
ARG ORG_USERNAME_FIX_KC_VERSION="26.3.3"
ADD https://github.com/for-keycloak/keycloak-spi-fix-organization-username-form/releases/download/${ORG_USERNAME_FIX_VERSION}/fix-organization-username-form-${ORG_USERNAME_FIX_VERSION}-kc-${ORG_USERNAME_FIX_KC_VERSION}.jar \
    /opt/keycloak/providers/fix-organization-username-form.jar

Option 2: Manual Installation

  1. Download the JAR file from the releases page
  2. Copy it to the providers directory of your Keycloak installation

Local Development

Prerequisites

  • Just
  • Docker & Docker Compose (optional, for testing)

Building

Using just:

# Build for the default Keycloak version (26.3.3)
just build

Testing with Docker Compose

A docker-compose configuration is provided for testing, which includes:

Start the environment:

just build # Builds the spi
just up    # Starts Keycloak with the spi
# You can use admin/admin as the default credentials
just down  # Stops the environment

Access:

Supported Keycloak Versions

The authenticator is built and tested with multiple Keycloak versions:

Keycloak Version Compatible SPI Version
26.3.3 v2.0.0
26.2.5 v1.0.0

While the builds differ slightly for each version, the core functionality remains the same. The version-specific builds ensure compatibility and proper integration with each Keycloak release.

Development Notes

The project uses:

  • Maven for building
  • just for common development tasks
  • Docker & Docker Compose for testing
  • Release Please for versioning and release management
  • GitHub Actions for CI/CD

See the justfile for available commands and development shortcuts.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published