Skip to content

Commit db27ca2

Browse files
author
roland
committed
Update Ciba sample, add aspire, add README.md
1 parent 2a7ded8 commit db27ca2

33 files changed

Lines changed: 239 additions & 242 deletions

IdentityServer/v7/Apis/SimpleApi/Program.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
var builder = WebApplication.CreateBuilder(args);
1919

20+
builder.AddServiceDefaults();
21+
2022
builder.Services.AddSerilog();
2123

2224
builder.Services.AddControllers();
@@ -40,6 +42,8 @@
4042

4143
var app = builder.Build();
4244

45+
app.MapDefaultEndpoints();
46+
4347
app.UseRouting();
4448
app.UseAuthentication();
4549
app.UseAuthorization();

IdentityServer/v7/Apis/SimpleApi/SimpleApi.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
<PackageReference Include="Serilog.AspNetCore" Version="9.0.0" />
1111
</ItemGroup>
1212

13+
<ItemGroup>
14+
<ProjectReference Include="..\..\Aspire.ServiceDefaults\Aspire.ServiceDefaults.csproj" />
15+
</ItemGroup>
16+
1317
<!-- Constants and helpers -->
1418

1519
</Project>

IdentityServer/v7/UserInteraction/Ciba/Api/Api.csproj

Lines changed: 0 additions & 13 deletions
This file was deleted.

IdentityServer/v7/UserInteraction/Ciba/Api/Constants.cs

Lines changed: 0 additions & 10 deletions
This file was deleted.

IdentityServer/v7/UserInteraction/Ciba/Api/IdentityController.cs

Lines changed: 0 additions & 27 deletions
This file was deleted.

IdentityServer/v7/UserInteraction/Ciba/Api/Program.cs

Lines changed: 0 additions & 39 deletions
This file was deleted.

IdentityServer/v7/UserInteraction/Ciba/Api/Properties/launchSettings.json

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
var builder = DistributedApplication.CreateBuilder(args);
2+
3+
var idsvr = builder.AddProject<Projects.IdentityServerHost>("identityserverhost");
4+
5+
var api = builder.AddProject<Projects.SimpleApi>("simpleapi");
6+
7+
builder.AddProject<Projects.Client>("client")
8+
.WaitFor(idsvr)
9+
.WaitFor(api);
10+
11+
builder.Build().Run();
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<Project Sdk="Aspire.AppHost.Sdk/13.2.1">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net10.0</TargetFramework>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<Nullable>enable</Nullable>
8+
<UserSecretsId>289847f7-34b8-436c-af32-3bf4c68e266f</UserSecretsId>
9+
</PropertyGroup>
10+
11+
<ItemGroup>
12+
<ProjectReference Include="..\..\..\Apis\SimpleApi\SimpleApi.csproj" />
13+
<ProjectReference Include="..\Client\Client.csproj" />
14+
<ProjectReference Include="..\IdentityServerHost\IdentityServerHost.csproj" />
15+
</ItemGroup>
16+
17+
</Project>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"$schema": "https://json.schemastore.org/launchsettings.json",
3+
"profiles": {
4+
"https": {
5+
"commandName": "Project",
6+
"dotnetRunMessages": true,
7+
"launchBrowser": true,
8+
"applicationUrl": "https://localhost:17196;http://localhost:15048",
9+
"environmentVariables": {
10+
"ASPNETCORE_ENVIRONMENT": "Development",
11+
"DOTNET_ENVIRONMENT": "Development",
12+
"ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL": "https://localhost:21100",
13+
"ASPIRE_DASHBOARD_MCP_ENDPOINT_URL": "https://localhost:23036",
14+
"ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL": "https://localhost:22230"
15+
}
16+
},
17+
"http": {
18+
"commandName": "Project",
19+
"dotnetRunMessages": true,
20+
"launchBrowser": true,
21+
"applicationUrl": "http://localhost:15048",
22+
"environmentVariables": {
23+
"ASPNETCORE_ENVIRONMENT": "Development",
24+
"DOTNET_ENVIRONMENT": "Development",
25+
"ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL": "http://localhost:19122",
26+
"ASPIRE_DASHBOARD_MCP_ENDPOINT_URL": "http://localhost:18210",
27+
"ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL": "http://localhost:20059"
28+
}
29+
}
30+
}
31+
}

0 commit comments

Comments
 (0)