KeycloakResourceBuilderExtensions
Classstaticnet10.0
Provides extension methods for adding Keycloak resources to an
Hosting.IDistributedApplicationBuilder. namespace Aspire.Hosting;
public static class KeycloakResourceBuilderExtensions{ // ...}9 members
Methods9
Section titled MethodsAddKeycloak(IDistributedApplicationBuilder, string, int?, IResourceBuilder<ParameterResource>, IResourceBuilder<ParameterResource>)extensionats exportIResourceBuilder<KeycloakResource> Adds a Keycloak container to the application model.
IResourceBuilder<KeycloakResource> Adds a bind mount for the data folder to a Keycloak container resource.
IResourceBuilder<KeycloakResource> Adds a named volume for the data folder to a Keycloak container resource.
IResourceBuilder<KeycloakResource> Additional feature names to disable for the keycloak resource
IResourceBuilder<KeycloakResource> Additional feature names to enable for the keycloak resource
IResourceBuilder<KeycloakResource> Injects the appropriate environment variables to allow the resource to enable sending telemetry to the dashboard.
- It ensures the "opentelemetry" Keycloak feature is enabled
- It sets the OTLP endpoint to the value of the
ASPIRE_DASHBOARD_OTLP_ENDPOINT_URLenvironment variable. - It sets the service name and instance id to the resource name and UID. Values are injected by the orchestrator.
- It sets a small batch schedule delay in development. This reduces the delay that OTLP exporter waits to sends telemetry and makes the dashboard telemetry pages responsive.
IResourceBuilder<KeycloakResource> Injects the appropriate environment variables to allow the resource to enable sending telemetry to the dashboard.
- It ensures the "opentelemetry" Keycloak feature is enabled
- It sets the OTLP endpoint to the value of the
ASPIRE_DASHBOARD_OTLP_ENDPOINT_URLenvironment variable. - It sets the service name and instance id to the resource name and UID. Values are injected by the orchestrator.
- It sets a small batch schedule delay in development. This reduces the delay that OTLP exporter waits to sends telemetry and makes the dashboard telemetry pages responsive.
IResourceBuilder<KeycloakResource> Adds a realm import to a Keycloak container resource.
IResourceBuilder<KeycloakResource> Adds a realm import to a Keycloak container resource.