Skip to content

Commit

Permalink
Test: Cookie api project
Browse files Browse the repository at this point in the history
  • Loading branch information
shps951023 committed Jun 23, 2024
1 parent 85285ee commit cd62d93
Show file tree
Hide file tree
Showing 6 changed files with 110 additions and 0 deletions.
31 changes: 31 additions & 0 deletions tests/TestCookieApi/TestCookieApi.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.10.34928.147
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestCookieApi", "TestCookieApi\TestCookieApi.csproj", "{2BA74791-95C0-416A-8E7F-AFEE47D81B46}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MiniAuth.IdentityAuth", "..\..\src\MiniAuth.IdentityAuth\MiniAuth.IdentityAuth.csproj", "{CC447DFA-F152-4480-AA2E-510E29BE9085}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{2BA74791-95C0-416A-8E7F-AFEE47D81B46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2BA74791-95C0-416A-8E7F-AFEE47D81B46}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2BA74791-95C0-416A-8E7F-AFEE47D81B46}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2BA74791-95C0-416A-8E7F-AFEE47D81B46}.Release|Any CPU.Build.0 = Release|Any CPU
{CC447DFA-F152-4480-AA2E-510E29BE9085}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CC447DFA-F152-4480-AA2E-510E29BE9085}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CC447DFA-F152-4480-AA2E-510E29BE9085}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CC447DFA-F152-4480-AA2E-510E29BE9085}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {34B33965-C0FD-446D-96B0-A296B7440D86}
EndGlobalSection
EndGlobal
20 changes: 20 additions & 0 deletions tests/TestCookieApi/TestCookieApi/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using Microsoft.AspNetCore.Hosting.Server.Features;
using Microsoft.AspNetCore.Hosting.Server;

namespace TestCookieApi
{
public class Program
{
public static void Main(string[] args)
{
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddMiniAuth();
var app = builder.Build();


app.MapGet("/", () => "Hello World!");

app.Run();
}
}
}
29 changes: 29 additions & 0 deletions tests/TestCookieApi/TestCookieApi/Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"$schema": "http://json.schemastore.org/launchsettings.json",
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:6440",
"sslPort": 0
}
},
"profiles": {
"http": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"applicationUrl": "http://localhost:5160",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
13 changes: 13 additions & 0 deletions tests/TestCookieApi/TestCookieApi/TestCookieApi.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\src\MiniAuth.IdentityAuth\MiniAuth.IdentityAuth.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
}
}
9 changes: 9 additions & 0 deletions tests/TestCookieApi/TestCookieApi/appsettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*"
}

0 comments on commit cd62d93

Please sign in to comment.