Skip to content

Commit

Permalink
Start shared endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
oveldman committed Mar 31, 2024
1 parent 6306b54 commit 0c57393
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 2 deletions.
4 changes: 4 additions & 0 deletions sources/Clients.Admin.BFF/Clients.Admin.BFF.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@
</Content>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Clients.Identity.Api.Shared\Clients.Identity.Api.Shared.csproj" />
</ItemGroup>

</Project>
6 changes: 6 additions & 0 deletions sources/Clients.Admin.BFF/Program.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
using MadWorldNL.Clients.Identity.Api.Shared.Builders;
using MadWorldNL.Clients.Identity.Api.Shared.Endpoints;

var builder = WebApplication.CreateBuilder(args);

// Add services to the container.
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();

builder.AddIdentity();

var app = builder.Build();

// Configure the HTTP request pipeline.
Expand All @@ -15,6 +20,7 @@
}

app.UseHttpsRedirection();
app.AddIdentityEndpoints();

var summaries = new[]
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using Microsoft.AspNetCore.Builder;

namespace MadWorldNL.Clients.Identity.Api.Shared.Builders;

public static class WebApplicationBuilderExtensions
{
public static void AddIdentity(this WebApplicationBuilder builder)
{

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<RootNamespace>MadWorldNL.Clients.Identity.Api.Shared</RootNamespace>
<AssemblyName>$(RootNamespace)</AssemblyName>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.OpenApi" />
</ItemGroup>

<ItemGroup>
<Folder Include="Services\" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using Microsoft.AspNetCore.Builder;

namespace MadWorldNL.Clients.Identity.Api.Shared.Endpoints;

public static class EndpointsExtensions
{
public static void AddIdentityEndpoints(this WebApplication app)
{

}
}
4 changes: 2 additions & 2 deletions sources/Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<ItemGroup>
<PackageVersion Include="Google.Protobuf" Version="3.26.0" />
<PackageVersion Include="Google.Protobuf" Version="3.26.1" />
<PackageVersion Include="Grpc.AspNetCore" Version="2.61.0" />
<PackageVersion Include="Grpc.AspNetCore.Server.Reflection" Version="2.61.0" />
<PackageVersion Include="Grpc.Net.Client" Version="2.61.0" />
Expand Down Expand Up @@ -28,7 +28,7 @@
<PackageVersion Include="Shouldly" Version="4.2.1" />
<PackageVersion Include="Swashbuckle.AspNetCore" Version="6.4.0" />
<PackageVersion Include="System.IdentityModel.Tokens.Jwt" Version="7.4.0" />
<PackageVersion Include="coverlet.collector" Version="6.0.1">
<PackageVersion Include="coverlet.collector" Version="6.0.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageVersion>
Expand Down
7 changes: 7 additions & 0 deletions sources/MadWorldNL.Identity.sln
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Clients.Admin.Web", "Client
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Clients.Admin.BFF", "Clients.Admin.BFF\Clients.Admin.BFF.csproj", "{E7111595-76B0-4A1D-AD45-819C7311887B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Clients.Identity.Api.Shared", "Clients.Identity.Api.Shared\Clients.Identity.Api.Shared.csproj", "{7F925140-B483-461E-9740-646E40771F4E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -66,6 +68,7 @@ Global
{18DCD2E1-CF25-4FAA-816A-3CFB316DD39F} = {FD69CCDE-B746-4AAF-B04C-9628249B7AD1}
{2CBE9479-2507-4235-AA27-E0DD7C898B7B} = {FD69CCDE-B746-4AAF-B04C-9628249B7AD1}
{E7111595-76B0-4A1D-AD45-819C7311887B} = {FD69CCDE-B746-4AAF-B04C-9628249B7AD1}
{7F925140-B483-461E-9740-646E40771F4E} = {FD69CCDE-B746-4AAF-B04C-9628249B7AD1}
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{2B04007E-B2D9-4E8B-82D2-C553CD5F3DA2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
Expand Down Expand Up @@ -104,5 +107,9 @@ Global
{E7111595-76B0-4A1D-AD45-819C7311887B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E7111595-76B0-4A1D-AD45-819C7311887B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E7111595-76B0-4A1D-AD45-819C7311887B}.Release|Any CPU.Build.0 = Release|Any CPU
{7F925140-B483-461E-9740-646E40771F4E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7F925140-B483-461E-9740-646E40771F4E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7F925140-B483-461E-9740-646E40771F4E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7F925140-B483-461E-9740-646E40771F4E}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal

0 comments on commit 0c57393

Please sign in to comment.