Getting Started
Demonstrates how to setup JWT Bearer Authentication based on Keycloak as OpenID Connect Identity Provider.
Last updated
Demonstrates how to setup JWT Bearer Authentication based on Keycloak as OpenID Connect Identity Provider.
Last updated
{
"realm": "authz",
"auth-server-url": "http://localhost:8088/auth/",
"ssl-required": "external",
"resource": "workspace-authz",
"public-client": true,
"confidential-port": 0
}var builder = WebApplication.CreateBuilder(args);
var host = builder.Host;
var configuration = builder.Configuration;
var services = builder.Services;
host.ConfigureKeycloakConfigurationSource();
services.AddKeycloakAuthentication(configuration);
var app = builder.Build();
app.UseAuthentication();
app.MapGet("/workspaces", () => "[]");
app.Run();