Skip to content

Supported Script providers #45290

Open

Description

@stianst

Description

Keycloak provides a lot of features out of the box, but at times some level of customization is needed. For Java developers there is a huge range of SPIs that allow all sorts of customizations, but not every developer knows Java, and it can also be a fairly high level of effort to write a Java provider as it needs to be compiled/built first. Ability to have extensions in other languages such as JavaScript makes it easier for developers without knowledge of Java to customize Keycloak.

Support for JavaScript providers (authenticator, authorization service policies, and protocol mappers) have been available as a preview feature in Keycloak for so long that it's not even present in our release notes (from 4.0.0 onwards).

Relevant documentation is available in the server developer guide.

Value Proposition

JavaScript providers provides a simpler and low barrier approach for customization for non-Java developers
Making the feature supported makes it possible to use this feature in production deployments

Goals

  • Review scripts preview feature to consider if it is ready to graduate to a fully supported feature
  • Resolve any important open bugs reported against the feature
  • Review if Nashorn is a still suitable and actively maintained engine for executing JavaScript within Java (this may not be the case as there is very little activity in the repository, and last release was over 2 years go
  • Feature mark as fully supported and enabled by default

Activity

  1. changed the title [-][RHBK-475] Supported Script providers[/-] [+]Supported Script providers[/+] on Jan 9, 2026
  2. added this to the Future milestone on Jan 9, 2026
  3. added
    kind/enhancement
    on Jan 9, 2026
  4. embesozzi commented on Jan 13, 2026

    @embesozzi

    I would add, based on my experience with other IdPs that support scripting using Mozilla Rhino JavaScript [1], that scripting significantly simplifies customization and deployment, since updates can be applied without redeployment.

    [1] https://github.com/mozilla/rhino

  5. Xkynar commented on Nov 6, 2026

    @Xkynar

    +1 would be great having this fully supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/enhancementteam/core-authnteam/core-iamteam/core-protocols

    Fields

    Value

    None yet

    Effort

    None yet

    Votes

    None yet

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions