NikiforovAll/keycloak-authorization-services-dotnet

Aspire Support

NikiforovAll opened this issue · 1 comments

Proposal

Add first-class support for Aspire.

var builder = DistributedApplication.CreateBuilder(args);

builder.AddKeyCloakContainer().WithAuthServices(realm: "MyAwesomeRealm");

builder.Build().Run();

Questions

Q: There are different types of options that we need to configure. Some of them are opt-in. We could inject auth-server-url environment variable and use it as a fallback option.
Q: Should we depend on AddKeycloakContainer or provide our own Aspire Resouce (fork?) to be more independent?

ref: dotnet/aspire#1326
ref: https://github.com/davidfowl/AspireSwaggerUI