Class KeycloakAuthenticationProvider

All Implemented Interfaces:
AuthenticationProvider<Credentials>

public class KeycloakAuthenticationProvider extends OpenIDAuthenticationProvider
Simplified factory to create an OAuth2AuthenticationProvider for Keycloak.
  • Constructor Details

    • KeycloakAuthenticationProvider

      public KeycloakAuthenticationProvider(@Nullable @Nullable javafx.stage.Stage stage, @NotNull @NotNull OAuth2Options options)
      Create an OAuth2AuthenticationProvider for Keycloak.
      Parameters:
      stage - the JavaFX application stage
      options - custom OAuth2 options
    • KeycloakAuthenticationProvider

      public KeycloakAuthenticationProvider(@Nullable @Nullable javafx.stage.Stage stage, @NotNull @NotNull org.json.JSONObject config)
      Create an OAuth2AuthenticationProvider for Keycloak.
      Parameters:
      stage - the JavaFX application stage
      config - the json configuration exported from Keycloak admin console
    • KeycloakAuthenticationProvider

      public KeycloakAuthenticationProvider(@Nullable @Nullable javafx.stage.Stage stage, @Nullable @Nullable OAuth2Flow flow, @NotNull @NotNull org.json.JSONObject config)
      Create an OAuth2AuthenticationProvider for Keycloak.
      Parameters:
      stage - the JavaFX application stage
      flow - the OAuth2 flow to use, default value is OAuth2Flow.AUTH_CODE
      config - the JSON configuration exported from Keycloak admin console
  • Method Details