-
Notifications
You must be signed in to change notification settings - Fork 129
Add Keycloak with Postgres integration #811
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
axies20
wants to merge
46
commits into
CommunityToolkit:main
Choose a base branch
from
axies20:KeycloakPostgres
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 41 commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
0df225d
**Add Keycloak with Postgres integration**
axies20 2e07fa8
Refactor Keycloak Postgres extension for improved configuration
axies20 1bf7ea7
Merge branch 'main' into KeycloakPostgres
axies20 90621f4
Refactor Keycloak Postgres extension for streamlined configuration
axies20 7a4fc17
Update src/CommunityToolkit.Aspire.Keycloak.Postgress/KeycloakPostgre…
axies20 9b11f66
Refactor Keycloak Postgres extension and restructure project
axies20 03cbc0a
Merge branch 'main' into KeycloakPostgres
axies20 53c7ca1
Update src/CommunityToolkit.Aspire.Keycloak.Extensions.Postgres/Keycl…
axies20 9c913c5
Update src/CommunityToolkit.Aspire.Keycloak.Extensions.Postgres/Keycl…
axies20 d77acaf
Update src/CommunityToolkit.Aspire.Keycloak.Extensions.Postgres/Keycl…
axies20 fcfad00
Merge remote-tracking branch 'origin/main' into KeycloakPostgres
axies20 6cd7d93
Merge branch 'main' into KeycloakPostgres
axies20 d4720a9
Remove Postgres-specific Keycloak extension and merge functionality i…
axies20 3962aa1
Merge remote-tracking branch 'origin/KeycloakPostgres' into KeycloakP…
axies20 beb9fe9
Merge branch 'main' into KeycloakPostgres
axies20 e01ce34
Update tests/CommunityToolkit.Aspire.Keycloak.Extensions.Postgres.Tes…
axies20 19c6f9a
Refactor Keycloak Postgres extension for code reuse and improved flex…
axies20 31a647b
Move Keycloak Postgres extension tests into core Keycloak extensions
axies20 cdd4b15
Merge branch 'main' into KeycloakPostgres
axies20 1ba736e
Add README and comprehensive tests for Keycloak PostgreSQL integration
axies20 1efdbbc
Merge remote-tracking branch 'origin/KeycloakPostgres' into KeycloakP…
axies20 afb6c43
Merge branch 'main' into KeycloakPostgres
axies20 993aa3e
Merge branch 'main' into KeycloakPostgres
axies20 6eeee8c
Remove outdated comment in KeycloakExtensionTests regarding server pa…
axies20 8514cab
Merge remote-tracking branch 'origin/KeycloakPostgres' into KeycloakP…
axies20 7513876
Add integration tests for Keycloak with Postgres and update project r…
axies20 8d7af9f
Add Keycloak Postgres example projects and enhance Aspire integration
axies20 2c66428
Remove unused Moq package reference from Keycloak extension tests pro…
axies20 d504e4c
Update Keycloak Postgres example projects and dependencies
axies20 5db02af
Update Aspire package version references to use variable-based approach
axies20 c5b5d8d
Merge branch 'main' into KeycloakPostgres
axies20 5424687
Update Directory.Packages.props and Keycloak tests for new package ve…
axies20 fe16c1f
Merge branch 'main' into KeycloakPostgres
axies20 50db669
Rename Keycloak Extensions and Examples to use "Hosting" for consistency
axies20 9d0a369
Merge remote-tracking branch 'origin/KeycloakPostgres' into KeycloakP…
axies20 96e174f
Merge branch 'main' into KeycloakPostgres
axies20 fedcf87
Merge branch 'main' into KeycloakPostgres
axies20 6c968b4
Merge branch 'CommunityToolkit:main' into KeycloakPostgres
axies20 b1d9793
Rename Keycloak Extensions to "Hosting" for consistency
axies20 a7422fe
Update Keycloak PostgreSQL extensions for hosting model compliance
axies20 bbbb8d4
Enhance XML docs for `WithPostgres` methods and fix project references
axies20 9055d7b
Rename Keycloak Hosting Extensions to Aspire.Hosting for consistency
axies20 81bb900
Fixing the naming again and some build issues
aaronpowell 4a801e9
Adding the tests in
aaronpowell cab3674
Fixing more bad changes
aaronpowell 1e5d94d
Dealing with more build errors
aaronpowell File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally> | ||
<AspirePreviewVersion>9.4.1-preview.1.25408.4</AspirePreviewVersion> | ||
<MoqVersion>4.20.72</MoqVersion> | ||
|
||
</PropertyGroup> | ||
<ItemGroup Label="Aspire Packages"> | ||
<!-- Aspire packages --> | ||
|
@@ -18,6 +20,9 @@ | |
<PackageVersion Include="Aspire.Hosting.MongoDB" Version="$(AspireVersion)" /> | ||
<PackageVersion Include="Aspire.Hosting.MySql" Version="$(AspireVersion)" /> | ||
<PackageVersion Include="Aspire.Hosting.SqlServer" Version="$(AspireVersion)" /> | ||
<PackageVersion Include="Aspire.Hosting.Keycloak" Version="$(AspirePreviewVersion)" /> | ||
<PackageVersion Include="Aspire.Keycloak.Authentication" Version="$(AspirePreviewVersion)" /> | ||
<PackageVersion Include="Moq" Version="$(MoqVersion)" /> | ||
|
||
</ItemGroup> | ||
<ItemGroup Label="Core Packages"> | ||
<!-- AspNetCore packages --> | ||
|
30 changes: 30 additions & 0 deletions
30
.../keycloak-postgres/CommunityToolkit.Aspire.Keycloak.Hosting.Extensions.AppHost/AppHost.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using Aspire.Hosting; | ||
|
||
var builder = DistributedApplication.CreateBuilder(args); | ||
|
||
var postgres = builder.AddPostgres("keycloak-postgres-dev"); | ||
var dbDev = postgres.AddDatabase("db-dev"); | ||
|
||
var keycloakDev = builder.AddKeycloak("keycloak-dev") | ||
.WithPostgres(dbDev); | ||
|
||
var dbUserName = builder.AddParameter("db-username", "postgres"); | ||
var dbPassword = builder.AddParameter("db-password", "Postgres!123"); | ||
|
||
var postgresProd = builder.AddPostgres("postgres-prod", | ||
dbUserName, dbPassword); | ||
|
||
var dbProd = postgresProd.AddDatabase("db-prod"); | ||
|
||
var keycloakProd = builder.AddKeycloak("keycloak-prod") | ||
.WithPostgres(dbProd, dbUserName, dbPassword); | ||
|
||
|
||
builder.AddProject<Projects.CommunityToolkit_Aspire_Keycloak_Hosting_Extensions_Dev>("project-dev") | ||
.WithReference(keycloakDev) | ||
.WaitFor(keycloakDev); | ||
|
||
builder.AddProject<Projects.CommunityToolkit_Aspire_Keycloak_Hosting_Extensions_Prod>("project-prod") | ||
.WithReference(keycloakProd) | ||
.WaitFor(keycloakProd); | ||
builder.Build().Run(); |
26 changes: 26 additions & 0 deletions
26
...ing.Extensions.AppHost/CommunityToolkit.Aspire.Keycloak.Hosting.Extensions.AppHost.csproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<Sdk Name="Aspire.AppHost.Sdk" Version="$(AspireAppHostSdkVersion)"/> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<TargetFramework>net9.0</TargetFramework> | ||
<UserSecretsId>e5e65289-cf91-4bda-b628-28a68fb90841</UserSecretsId> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Aspire.Hosting"/> | ||
<PackageReference Include="Aspire.Hosting.AppHost"/> | ||
<PackageReference Include="Aspire.Hosting.Keycloak"/> | ||
<PackageReference Include="Aspire.Hosting.PostgreSQL"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\..\src\CommunityToolkit.Aspire.Keycloak.Hosting.Extensions\CommunityToolkit.Aspire.Keycloak.Hosting.Extensions.csproj" IsAspireProjectResource="false" /> | ||
<ProjectReference Include="..\CommunityToolkit.Aspire.Keycloak.Hosting.Extensions.Dev\CommunityToolkit.Aspire.Keycloak.Hosting.Extensions.Dev.csproj" /> | ||
<ProjectReference Include="..\CommunityToolkit.Aspire.Keycloak.Hosting.Extensions.Prod\CommunityToolkit.Aspire.Keycloak.Hosting.Extensions.Prod.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
29 changes: 29 additions & 0 deletions
29
...ommunityToolkit.Aspire.Keycloak.Hosting.Extensions.AppHost/Properties/launchSettings.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/launchsettings.json", | ||
"profiles": { | ||
"https": { | ||
"commandName": "Project", | ||
"dotnetRunMessages": true, | ||
"launchBrowser": true, | ||
"applicationUrl": "https://localhost:17044;http://localhost:15216", | ||
"environmentVariables": { | ||
"ASPNETCORE_ENVIRONMENT": "Development", | ||
"DOTNET_ENVIRONMENT": "Development", | ||
"ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL": "https://localhost:21202", | ||
"ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL": "https://localhost:22139" | ||
} | ||
}, | ||
"http": { | ||
"commandName": "Project", | ||
"dotnetRunMessages": true, | ||
"launchBrowser": true, | ||
"applicationUrl": "http://localhost:15216", | ||
"environmentVariables": { | ||
"ASPNETCORE_ENVIRONMENT": "Development", | ||
"DOTNET_ENVIRONMENT": "Development", | ||
"ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL": "http://localhost:19292", | ||
"ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL": "http://localhost:20099" | ||
} | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...oak-postgres/CommunityToolkit.Aspire.Keycloak.Hosting.Extensions.AppHost/appsettings.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"Logging": { | ||
"LogLevel": { | ||
"Default": "Information", | ||
"Microsoft.AspNetCore": "Warning", | ||
"Aspire.Hosting.Dcp": "Warning" | ||
} | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
...t.Aspire.Keycloak.Hosting.Extensions.Dev/CommunityToolkit.Aspire.Keycloak.Extensions.http
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@CommunityToolkit.Aspire.Keycloak.Extensions_HostAddress = http://localhost:5030 | ||
|
||
GET {{CommunityToolkit.Aspire.Keycloak.Extensions_HostAddress}}/weatherforecast/ | ||
Accept: application/json | ||
|
||
### |
18 changes: 18 additions & 0 deletions
18
...oak.Hosting.Extensions.Dev/CommunityToolkit.Aspire.Keycloak.Hosting.Extensions.Dev.csproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<Project Sdk="Microsoft.NET.Sdk.Web"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net9.0</TargetFramework> | ||
<Nullable>enable</Nullable> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Aspire.Keycloak.Authentication" /> | ||
<PackageReference Include="Microsoft.AspNetCore.OpenApi" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\CommunityToolkit.Aspire.Keycloak.Hosting.Extensions.ServiceDefaults\CommunityToolkit.Aspire.Keycloak.Hosting.Extensions.ServiceDefaults.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
47 changes: 47 additions & 0 deletions
47
...ples/keycloak-postgres/CommunityToolkit.Aspire.Keycloak.Hosting.Extensions.Dev/Program.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
using CommunityToolkit.Aspire.Keycloak.Hosting.Extensions.AppHost.ServiceDefaults; | ||
|
||
var builder = WebApplication.CreateBuilder(args); | ||
builder.AddServiceDefaults(); | ||
|
||
builder.Services.AddAuthentication() | ||
.AddKeycloakJwtBearer("keycloak-dev", "master", jwt => | ||
{ | ||
if (builder.Environment.IsDevelopment()) | ||
{ | ||
//for development only | ||
jwt.RequireHttpsMetadata = false; | ||
} | ||
|
||
|
||
}); | ||
|
||
var app = builder.Build(); | ||
|
||
|
||
app.UseHttpsRedirection(); | ||
|
||
var summaries = new[] | ||
{ | ||
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" | ||
}; | ||
|
||
app.MapGet("/weatherforecast", () => | ||
{ | ||
var forecast = Enumerable.Range(1, 5).Select(index => | ||
new WeatherForecast | ||
( | ||
DateOnly.FromDateTime(DateTime.Now.AddDays(index)), | ||
Random.Shared.Next(-20, 55), | ||
summaries[Random.Shared.Next(summaries.Length)] | ||
)) | ||
.ToArray(); | ||
return forecast; | ||
}) | ||
.WithName("GetWeatherForecast"); | ||
|
||
app.Run(); | ||
|
||
record WeatherForecast(DateOnly Date, int TemperatureC, string? Summary) | ||
{ | ||
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); | ||
} |
23 changes: 23 additions & 0 deletions
23
...es/CommunityToolkit.Aspire.Keycloak.Hosting.Extensions.Dev/Properties/launchSettings.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/launchsettings.json", | ||
"profiles": { | ||
"http": { | ||
"commandName": "Project", | ||
"dotnetRunMessages": true, | ||
"launchBrowser": false, | ||
"applicationUrl": "http://localhost:5030", | ||
"environmentVariables": { | ||
"ASPNETCORE_ENVIRONMENT": "Development" | ||
} | ||
}, | ||
"https": { | ||
"commandName": "Project", | ||
"dotnetRunMessages": true, | ||
"launchBrowser": false, | ||
"applicationUrl": "https://localhost:7041;http://localhost:5030", | ||
"environmentVariables": { | ||
"ASPNETCORE_ENVIRONMENT": "Development" | ||
} | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...eycloak-postgres/CommunityToolkit.Aspire.Keycloak.Hosting.Extensions.Dev/appsettings.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"Logging": { | ||
"LogLevel": { | ||
"Default": "Information", | ||
"Microsoft.AspNetCore": "Warning" | ||
} | ||
}, | ||
"AllowedHosts": "*" | ||
} |
6 changes: 6 additions & 0 deletions
6
...re.Keycloak.Hosting.Extensions.Prod/CommunityToolkit.Aspire.Keycloak.Extensions.Prod.http
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@CommunityToolkit.Aspire.Keycloak.Extensions.Prod_HostAddress = http://localhost:5286 | ||
|
||
GET {{CommunityToolkit.Aspire.Keycloak.Extensions.Prod_HostAddress}}/weatherforecast/ | ||
Accept: application/json | ||
|
||
### |
17 changes: 17 additions & 0 deletions
17
...k.Hosting.Extensions.Prod/CommunityToolkit.Aspire.Keycloak.Hosting.Extensions.Prod.csproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<Project Sdk="Microsoft.NET.Sdk.Web"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net9.0</TargetFramework> | ||
<Nullable>enable</Nullable> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Aspire.Keycloak.Authentication"/> | ||
<PackageReference Include="Microsoft.AspNetCore.OpenApi"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\CommunityToolkit.Aspire.Keycloak.Hosting.Extensions.ServiceDefaults\CommunityToolkit.Aspire.Keycloak.Hosting.Extensions.ServiceDefaults.csproj" /> | ||
</ItemGroup> | ||
</Project> |
45 changes: 45 additions & 0 deletions
45
...les/keycloak-postgres/CommunityToolkit.Aspire.Keycloak.Hosting.Extensions.Prod/Program.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
using CommunityToolkit.Aspire.Keycloak.Hosting.Extensions.AppHost.ServiceDefaults; | ||
|
||
var builder = WebApplication.CreateBuilder(args); | ||
builder.AddServiceDefaults(); | ||
|
||
builder.Services.AddAuthentication() | ||
.AddKeycloakJwtBearer("keycloak-prod", "master", jwt => | ||
{ | ||
if (builder.Environment.IsDevelopment()) | ||
{ | ||
//for development only | ||
jwt.RequireHttpsMetadata = false; | ||
} | ||
}); | ||
|
||
var app = builder.Build(); | ||
|
||
|
||
app.UseHttpsRedirection(); | ||
|
||
var summaries = new[] | ||
{ | ||
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" | ||
}; | ||
|
||
app.MapGet("/weatherforecast", () => | ||
{ | ||
var forecast = Enumerable.Range(1, 5).Select(index => | ||
new WeatherForecast | ||
( | ||
DateOnly.FromDateTime(DateTime.Now.AddDays(index)), | ||
Random.Shared.Next(-20, 55), | ||
summaries[Random.Shared.Next(summaries.Length)] | ||
)) | ||
.ToArray(); | ||
return forecast; | ||
}) | ||
.WithName("GetWeatherForecast"); | ||
|
||
app.Run(); | ||
|
||
record WeatherForecast(DateOnly Date, int TemperatureC, string? Summary) | ||
{ | ||
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); | ||
} |
23 changes: 23 additions & 0 deletions
23
...s/CommunityToolkit.Aspire.Keycloak.Hosting.Extensions.Prod/Properties/launchSettings.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/launchsettings.json", | ||
"profiles": { | ||
"http": { | ||
"commandName": "Project", | ||
"dotnetRunMessages": true, | ||
"launchBrowser": false, | ||
"applicationUrl": "http://localhost:5286", | ||
"environmentVariables": { | ||
"ASPNETCORE_ENVIRONMENT": "Development" | ||
} | ||
}, | ||
"https": { | ||
"commandName": "Project", | ||
"dotnetRunMessages": true, | ||
"launchBrowser": false, | ||
"applicationUrl": "https://localhost:7134;http://localhost:5286", | ||
"environmentVariables": { | ||
"ASPNETCORE_ENVIRONMENT": "Development" | ||
} | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...ycloak-postgres/CommunityToolkit.Aspire.Keycloak.Hosting.Extensions.Prod/appsettings.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"Logging": { | ||
"LogLevel": { | ||
"Default": "Information", | ||
"Microsoft.AspNetCore": "Warning" | ||
} | ||
}, | ||
"AllowedHosts": "*" | ||
} |
23 changes: 23 additions & 0 deletions
23
...erviceDefaults/CommunityToolkit.Aspire.Keycloak.Hosting.Extensions.ServiceDefaults.csproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net9.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<IsAspireSharedProject>true</IsAspireSharedProject> | ||
<RootNamespace>CommunityToolkit.Aspire.Keycloak.Hosting.Extensions.AppHost.ServiceDefaults</RootNamespace> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<FrameworkReference Include="Microsoft.AspNetCore.App"/> | ||
|
||
<PackageReference Include="Microsoft.Extensions.Http.Resilience"/> | ||
<PackageReference Include="Microsoft.Extensions.ServiceDiscovery"/> | ||
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol"/> | ||
<PackageReference Include="OpenTelemetry.Extensions.Hosting"/> | ||
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore"/> | ||
<PackageReference Include="OpenTelemetry.Instrumentation.Http"/> | ||
<PackageReference Include="OpenTelemetry.Instrumentation.Runtime"/> | ||
</ItemGroup> | ||
|
||
</Project> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This belongs in the
Directory.Build.props
file, and it should be just the suffix, so that when used we would do<PackageVersion Include="Aspire.Hosting.Keycloak" Version="$(AspireVersion)-$(AspirePreviewSuffix)" />
, which ensures that we sync theMajor.Minor.Patch
across all packages.