Browse Source

Add Demo Apps.

pull/12084/head
maliming 5 years ago
parent
commit
ec6f972f6b
No known key found for this signature in database GPG Key ID: 96224957E51C89E
  1. 23
      modules/OpenIddict/Volo.Abp.OpenIddict.sln
  2. 32
      modules/OpenIddict/app/OpenIddict.Demo.Client.API/Controllers/WeatherForecastController.cs
  3. 14
      modules/OpenIddict/app/OpenIddict.Demo.Client.API/OpenIddict.Demo.Client.API.csproj
  4. 38
      modules/OpenIddict/app/OpenIddict.Demo.Client.API/Program.cs
  5. 14
      modules/OpenIddict/app/OpenIddict.Demo.Client.API/Properties/launchSettings.json
  6. 12
      modules/OpenIddict/app/OpenIddict.Demo.Client.API/WeatherForecast.cs
  7. 8
      modules/OpenIddict/app/OpenIddict.Demo.Client.API/appsettings.json
  8. 8
      modules/OpenIddict/app/OpenIddict.Demo.Client.Console/OpenIddict.Demo.Client.Console.csproj
  9. 57
      modules/OpenIddict/app/OpenIddict.Demo.Client.Console/Program.cs
  10. 15
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/OpenIddict.Demo.Client.Mvc.csproj
  11. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/Pages/Error.cshtml
  12. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/Pages/Error.cshtml.cs
  13. 23
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/Pages/Index.cshtml
  14. 5
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/Pages/Index.cshtml.cs
  15. 6
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/Pages/Login.cshtml
  16. 13
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/Pages/Login.cshtml.cs
  17. 6
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/Pages/Logout.cshtml
  18. 12
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/Pages/Logout.cshtml.cs
  19. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/Pages/Shared/_Layout.cshtml
  20. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/Pages/Shared/_Layout.cshtml.css
  21. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/Pages/Shared/_ValidationScriptsPartial.cshtml
  22. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/Pages/_ViewImports.cshtml
  23. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/Pages/_ViewStart.cshtml
  24. 60
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/Program.cs
  25. 13
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/Properties/launchSettings.json
  26. 8
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/appsettings.json
  27. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/css/site.css
  28. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/favicon.ico
  29. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/js/site.js
  30. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/LICENSE
  31. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css
  32. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css.map
  33. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.min.css
  34. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.min.css.map
  35. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.css
  36. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.css.map
  37. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.min.css
  38. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.min.css.map
  39. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css
  40. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css.map
  41. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css
  42. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css.map
  43. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css
  44. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css.map
  45. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.min.css
  46. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.min.css.map
  47. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.css
  48. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.css.map
  49. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.min.css
  50. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.min.css.map
  51. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css
  52. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css.map
  53. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.min.css
  54. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.min.css.map
  55. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap.css
  56. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap.css.map
  57. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css
  58. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css.map
  59. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.css
  60. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.css.map
  61. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.min.css
  62. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.min.css.map
  63. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js
  64. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js.map
  65. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.min.js
  66. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.min.js.map
  67. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.js
  68. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.js.map
  69. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.min.js
  70. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.min.js.map
  71. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/js/bootstrap.js
  72. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/js/bootstrap.js.map
  73. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/js/bootstrap.min.js
  74. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/js/bootstrap.min.js.map
  75. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/jquery-validation-unobtrusive/LICENSE.txt
  76. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js
  77. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js
  78. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/jquery-validation/LICENSE.md
  79. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/jquery-validation/dist/additional-methods.js
  80. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/jquery-validation/dist/additional-methods.min.js
  81. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/jquery-validation/dist/jquery.validate.js
  82. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/jquery-validation/dist/jquery.validate.min.js
  83. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/jquery/LICENSE.txt
  84. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/jquery/dist/jquery.js
  85. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/jquery/dist/jquery.min.js
  86. 0
      modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/jquery/dist/jquery.min.map
  87. 10
      modules/OpenIddict/app/OpenIddict.Demo.Client/Pages/Index.cshtml
  88. 8
      modules/OpenIddict/app/OpenIddict.Demo.Client/Pages/Privacy.cshtml
  89. 18
      modules/OpenIddict/app/OpenIddict.Demo.Client/Pages/Privacy.cshtml.cs
  90. 25
      modules/OpenIddict/app/OpenIddict.Demo.Client/Program.cs
  91. 28
      modules/OpenIddict/app/OpenIddict.Demo.Client/Properties/launchSettings.json
  92. 9
      modules/OpenIddict/app/OpenIddict.Demo.Client/appsettings.Development.json
  93. 9
      modules/OpenIddict/app/OpenIddict.Demo.Client/appsettings.json
  94. 97
      modules/OpenIddict/app/OpenIddict.Demo.Server/EntityFrameworkCore/ServerDataSeedContributor.cs
  95. 32
      modules/OpenIddict/app/OpenIddict.Demo.Server/EntityFrameworkCore/ServerDbContext.cs
  96. 25
      modules/OpenIddict/app/OpenIddict.Demo.Server/EntityFrameworkCore/ServerDbContextFactory.cs
  97. 1203
      modules/OpenIddict/app/OpenIddict.Demo.Server/Migrations/20220329055013_Initial.Designer.cs
  98. 706
      modules/OpenIddict/app/OpenIddict.Demo.Server/Migrations/20220329055013_Initial.cs
  99. 1201
      modules/OpenIddict/app/OpenIddict.Demo.Server/Migrations/ServerDbContextModelSnapshot.cs
  100. 72
      modules/OpenIddict/app/OpenIddict.Demo.Server/OpenIddict.Demo.Server.csproj

23
modules/OpenIddict/Volo.Abp.OpenIddict.sln

@ -27,7 +27,13 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "app", "app", "{2B5CD179-FF7
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenIddict.Demo.Server", "app\OpenIddict.Demo.Server\OpenIddict.Demo.Server.csproj", "{88FD6C42-4134-4F35-A104-ED8520463847}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenIddict.Demo.Client", "app\OpenIddict.Demo.Client\OpenIddict.Demo.Client.csproj", "{FC1F7510-047E-4D4B-B024-82BB5269E584}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenIddict.Demo.Client.Mvc", "app\OpenIddict.Demo.Client.Mvc\OpenIddict.Demo.Client.Mvc.csproj", "{FC1F7510-047E-4D4B-B024-82BB5269E584}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Volo.Abp.OpenIddict.AspNetCore", "src\Volo.Abp.OpenIddict.AspNetCore\Volo.Abp.OpenIddict.AspNetCore.csproj", "{2DCC3E87-4901-4980-ABB8-0A93F2C2F7B8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenIddict.Demo.Client.Console", "app\OpenIddict.Demo.Client.Console\OpenIddict.Demo.Client.Console.csproj", "{1EF0F35E-65BE-4994-9BC4-9D3992A9B05C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenIddict.Demo.Client.API", "app\OpenIddict.Demo.Client.API\OpenIddict.Demo.Client.API.csproj", "{70FD6E90-BBE8-4DA1-AE07-55064803225B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@ -75,6 +81,18 @@ Global
{FC1F7510-047E-4D4B-B024-82BB5269E584}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FC1F7510-047E-4D4B-B024-82BB5269E584}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FC1F7510-047E-4D4B-B024-82BB5269E584}.Release|Any CPU.Build.0 = Release|Any CPU
{2DCC3E87-4901-4980-ABB8-0A93F2C2F7B8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2DCC3E87-4901-4980-ABB8-0A93F2C2F7B8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2DCC3E87-4901-4980-ABB8-0A93F2C2F7B8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2DCC3E87-4901-4980-ABB8-0A93F2C2F7B8}.Release|Any CPU.Build.0 = Release|Any CPU
{1EF0F35E-65BE-4994-9BC4-9D3992A9B05C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1EF0F35E-65BE-4994-9BC4-9D3992A9B05C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1EF0F35E-65BE-4994-9BC4-9D3992A9B05C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1EF0F35E-65BE-4994-9BC4-9D3992A9B05C}.Release|Any CPU.Build.0 = Release|Any CPU
{70FD6E90-BBE8-4DA1-AE07-55064803225B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{70FD6E90-BBE8-4DA1-AE07-55064803225B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{70FD6E90-BBE8-4DA1-AE07-55064803225B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{70FD6E90-BBE8-4DA1-AE07-55064803225B}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@ -90,6 +108,9 @@ Global
{E60895E5-79C4-447D-88B7-85CB5BA336A4} = {CCD2960C-23CC-4AB4-B84D-60C7AAA52F4D}
{88FD6C42-4134-4F35-A104-ED8520463847} = {2B5CD179-FF7B-428F-98F6-2ADBB9538D18}
{FC1F7510-047E-4D4B-B024-82BB5269E584} = {2B5CD179-FF7B-428F-98F6-2ADBB9538D18}
{2DCC3E87-4901-4980-ABB8-0A93F2C2F7B8} = {649A3FFA-182F-4E56-9717-E6A9A2BEC545}
{1EF0F35E-65BE-4994-9BC4-9D3992A9B05C} = {2B5CD179-FF7B-428F-98F6-2ADBB9538D18}
{70FD6E90-BBE8-4DA1-AE07-55064803225B} = {2B5CD179-FF7B-428F-98F6-2ADBB9538D18}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {C09128AF-C73F-ED7D-33F5-69BF7D934D50}

32
modules/OpenIddict/app/OpenIddict.Demo.Client.API/Controllers/WeatherForecastController.cs

@ -0,0 +1,32 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace OpenIddict.Demo.Client.API.Controllers;
[ApiController]
[Authorize]
[Route("[controller]")]
public class WeatherForecastController : ControllerBase
{
private static readonly string[] Summaries = new[] {
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
};
private readonly ILogger<WeatherForecastController> _logger;
public WeatherForecastController(ILogger<WeatherForecastController> logger)
{
_logger = logger;
}
[HttpGet(Name = "GetWeatherForecast")]
public IEnumerable<WeatherForecast> Get()
{
return Enumerable.Range(1, 5).Select(index => new WeatherForecast {
Date = DateTime.Now.AddDays(index),
TemperatureC = Random.Shared.Next(-20, 55),
Summary = Summaries[Random.Shared.Next(Summaries.Length)]
})
.ToArray();
}
}

14
modules/OpenIddict/app/OpenIddict.Demo.Client.API/OpenIddict.Demo.Client.API.csproj

@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.3" />
</ItemGroup>
</Project>

38
modules/OpenIddict/app/OpenIddict.Demo.Client.API/Program.cs

@ -0,0 +1,38 @@
using Microsoft.AspNetCore.Authentication.JwtBearer;
var builder = WebApplication.CreateBuilder(args);
builder.Logging.ClearProviders();
builder.Logging.AddConsole();
// Add services to the container.
builder.Services.AddControllers();
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();
builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
.AddJwtBearer(options =>
{
options.Authority = "https://localhost:44301";
options.Audience = "OpenIddictDemoAPIResource";
});
var app = builder.Build();
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
app.UseSwagger();
app.UseSwaggerUI();
}
app.UseHttpsRedirection();
app.UseAuthentication();
app.UseAuthorization();
app.MapControllers();
app.Run();

14
modules/OpenIddict/app/OpenIddict.Demo.Client.API/Properties/launchSettings.json

@ -0,0 +1,14 @@
{
"profiles": {
"OpenIddict.Demo.Client.API": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"launchUrl": "swagger",
"applicationUrl": "https://localhost:44303",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}

12
modules/OpenIddict/app/OpenIddict.Demo.Client.API/WeatherForecast.cs

@ -0,0 +1,12 @@
namespace OpenIddict.Demo.Client.API;
public class WeatherForecast
{
public DateTime Date { get; set; }
public int TemperatureC { get; set; }
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
public string? Summary { get; set; }
}

8
modules/OpenIddict/app/OpenIddict.Demo.Client.API/appsettings.json

@ -0,0 +1,8 @@
{
"Logging": {
"LogLevel": {
"Default": "Information"
}
},
"AllowedHosts": "*"
}

8
modules/OpenIddict/app/OpenIddict.Demo.Client/OpenIddict.Demo.Client.csproj → modules/OpenIddict/app/OpenIddict.Demo.Client.Console/OpenIddict.Demo.Client.Console.csproj

@ -1,9 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="IdentityModel" Version="6.0.0" />
</ItemGroup>
</Project>

57
modules/OpenIddict/app/OpenIddict.Demo.Client.Console/Program.cs

@ -0,0 +1,57 @@
using System.Net.Http.Headers;
using IdentityModel.Client;
const string email = "admin@abp.io";
const string password = "1q2w3E*";
const string server = "https://localhost:44301/";
const string api = "https://localhost:44303/WeatherForecast";
const string clientId = "MyClient";
const string clientSecret = "901564A5-E7FE-42CB-B10D-61EF6A8F3654";
var client = new HttpClient();
var configuration = await client.GetDiscoveryDocumentAsync(server);
if (configuration.IsError)
{
throw new Exception($"An error occurred while retrieving the configuration document: {configuration.Error}");
}
var tokenResponse = await client.RequestPasswordTokenAsync(new PasswordTokenRequest
{
Address = configuration.TokenEndpoint,
ClientId = clientId,
ClientSecret = clientSecret,
UserName = email,
Password = password
});
if (tokenResponse.IsError)
{
throw new Exception(tokenResponse.Error);
}
Console.WriteLine("Access token: {0}", tokenResponse.AccessToken);
Console.WriteLine();
var userinfo = await client.GetUserInfoAsync(new UserInfoRequest()
{
Address = configuration.UserInfoEndpoint,
Token = tokenResponse.AccessToken
});
if (userinfo.IsError)
{
throw new Exception(userinfo.Error);
}
Console.WriteLine("UserInfo: {0}", userinfo.Raw);
Console.WriteLine();
var request = new HttpRequestMessage(HttpMethod.Get, api);
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", tokenResponse.AccessToken);
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine("API response: {0}", await response.Content.ReadAsStringAsync());
Console.WriteLine();

15
modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/OpenIddict.Demo.Client.Mvc.csproj

@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="IdentityModel" Version="6.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="6.0.3" />
</ItemGroup>
</Project>

0
modules/OpenIddict/app/OpenIddict.Demo.Client/Pages/Error.cshtml → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/Pages/Error.cshtml

0
modules/OpenIddict/app/OpenIddict.Demo.Client/Pages/Error.cshtml.cs → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/Pages/Error.cshtml.cs

23
modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/Pages/Index.cshtml

@ -0,0 +1,23 @@
@page
@model IndexModel
@{
ViewData["Title"] = "Home page";
}
<div class="text-center">
<h1 class="display-4">Welcome</h1>
<p>Learn about <a href="https://docs.microsoft.com/aspnet/core">building Web apps with ASP.NET Core</a>.</p>
<a class="btn btn-primary" href="/Login">Login</a>
<a class="btn btn-warning" href="/Logout">Loout</a>
@if (HttpContext.User.Identity != null && HttpContext.User.Identity.IsAuthenticated)
{
<ul class="list-group mt-3 text-start">
@foreach (var claim in HttpContext.User.Claims)
{
<li class="list-group-item">@claim.Type : @claim.Value</li>
}
</ul>
}
</div>

5
modules/OpenIddict/app/OpenIddict.Demo.Client/Pages/Index.cshtml.cs → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/Pages/Index.cshtml.cs

@ -1,5 +1,4 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace OpenIddict.Demo.Client.Pages;
@ -15,4 +14,4 @@ public class IndexModel : PageModel
public void OnGet()
{
}
}
}

6
modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/Pages/Login.cshtml

@ -0,0 +1,6 @@
@page
@model OpenIddict.Demo.Client.Pages.Login
@{
ViewData["Title"] = "Login page";
}

13
modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/Pages/Login.cshtml.cs

@ -0,0 +1,13 @@
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace OpenIddict.Demo.Client.Pages;
public class Login : PageModel
{
public IActionResult OnGet()
{
return Challenge(new AuthenticationProperties { RedirectUri = "/" }, "oidc");
}
}

6
modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/Pages/Logout.cshtml

@ -0,0 +1,6 @@
@page
@model OpenIddict.Demo.Client.Pages.Logout
@{
ViewData["Title"] = "Logout page";
}

12
modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/Pages/Logout.cshtml.cs

@ -0,0 +1,12 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace OpenIddict.Demo.Client.Pages;
public class Logout : PageModel
{
public IActionResult OnGet()
{
return SignOut("Cookies", "oidc");
}
}

0
modules/OpenIddict/app/OpenIddict.Demo.Client/Pages/Shared/_Layout.cshtml → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/Pages/Shared/_Layout.cshtml

0
modules/OpenIddict/app/OpenIddict.Demo.Client/Pages/Shared/_Layout.cshtml.css → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/Pages/Shared/_Layout.cshtml.css

0
modules/OpenIddict/app/OpenIddict.Demo.Client/Pages/Shared/_ValidationScriptsPartial.cshtml → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/Pages/Shared/_ValidationScriptsPartial.cshtml

0
modules/OpenIddict/app/OpenIddict.Demo.Client/Pages/_ViewImports.cshtml → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/Pages/_ViewImports.cshtml

0
modules/OpenIddict/app/OpenIddict.Demo.Client/Pages/_ViewStart.cshtml → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/Pages/_ViewStart.cshtml

60
modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/Program.cs

@ -0,0 +1,60 @@
using IdentityModel;
using Microsoft.AspNetCore.Identity;
var builder = WebApplication.CreateBuilder(args);
builder.Logging.ClearProviders();
builder.Logging.AddConsole();
// Add services to the container.
builder.Services.AddRazorPages();
builder.Services.AddAuthentication(options =>
{
options.DefaultScheme = "Cookies";
options.DefaultChallengeScheme = "oidc";
})
.AddCookie("Cookies", options =>
{
options.ExpireTimeSpan = TimeSpan.FromDays(365);
})
.AddOpenIdConnect("oidc", options =>
{
options.Authority = "https://localhost:44301/";
options.ClientId = "MyClient";
options.ClientSecret = "901564A5-E7FE-42CB-B10D-61EF6A8F3654";
options.RequireHttpsMetadata = false;
options.GetClaimsFromUserInfoEndpoint = true;
options.SaveTokens = true;
options.ResponseType = OidcConstants.ResponseTypes.Code;
options.SignOutScheme = "Cookies";
options.Scope.Add("email");
options.Scope.Add("roles");
});
var app = builder.Build();
// Configure the HTTP request pipeline.
if (!app.Environment.IsDevelopment())
{
app.UseExceptionHandler("/Error");
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
}
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseRouting();
app.UseAuthentication();
app.UseAuthorization();
app.MapRazorPages();
app.Run();

13
modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/Properties/launchSettings.json

@ -0,0 +1,13 @@
{
"profiles": {
"OpenIddict.Demo.Client.Mvc": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"applicationUrl": "https://localhost:44302",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}

8
modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/appsettings.json

@ -0,0 +1,8 @@
{
"Logging": {
"LogLevel": {
"Default": "Information"
}
},
"AllowedHosts": "*"
}

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/css/site.css → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/css/site.css

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/favicon.ico → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/favicon.ico

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/js/site.js → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/js/site.js

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/LICENSE → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/LICENSE

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css.map → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css.map

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.min.css → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.min.css

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.min.css.map → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.min.css.map

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.css → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.css

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.css.map → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.css.map

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.min.css → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.min.css

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.min.css.map → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.min.css.map

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css.map → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css.map

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css.map → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css.map

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css.map → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css.map

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.min.css → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.min.css

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.min.css.map → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.min.css.map

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.css → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.css

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.css.map → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.css.map

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.min.css → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.min.css

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.min.css.map → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.min.css.map

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css.map → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css.map

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.min.css → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.min.css

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.min.css.map → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.min.css.map

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/css/bootstrap.css → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap.css

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/css/bootstrap.css.map → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap.css.map

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css.map → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css.map

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.css → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.css

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.css.map → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.css.map

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.min.css → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.min.css

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.min.css.map → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.min.css.map

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js.map → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js.map

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.min.js → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.min.js

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.min.js.map → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.min.js.map

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.js → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.js

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.js.map → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.js.map

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.min.js → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.min.js

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.min.js.map → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.min.js.map

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/js/bootstrap.js → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/js/bootstrap.js

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/js/bootstrap.js.map → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/js/bootstrap.js.map

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/js/bootstrap.min.js → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/js/bootstrap.min.js

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/bootstrap/dist/js/bootstrap.min.js.map → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/bootstrap/dist/js/bootstrap.min.js.map

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/jquery-validation-unobtrusive/LICENSE.txt → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/jquery-validation-unobtrusive/LICENSE.txt

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/jquery-validation/LICENSE.md → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/jquery-validation/LICENSE.md

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/jquery-validation/dist/additional-methods.js → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/jquery-validation/dist/additional-methods.js

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/jquery-validation/dist/additional-methods.min.js → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/jquery-validation/dist/additional-methods.min.js

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/jquery-validation/dist/jquery.validate.js → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/jquery-validation/dist/jquery.validate.js

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/jquery-validation/dist/jquery.validate.min.js → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/jquery-validation/dist/jquery.validate.min.js

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/jquery/LICENSE.txt → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/jquery/LICENSE.txt

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/jquery/dist/jquery.js → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/jquery/dist/jquery.js

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/jquery/dist/jquery.min.js → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/jquery/dist/jquery.min.js

0
modules/OpenIddict/app/OpenIddict.Demo.Client/wwwroot/lib/jquery/dist/jquery.min.map → modules/OpenIddict/app/OpenIddict.Demo.Client.Mvc/wwwroot/lib/jquery/dist/jquery.min.map

10
modules/OpenIddict/app/OpenIddict.Demo.Client/Pages/Index.cshtml

@ -1,10 +0,0 @@
@page
@model IndexModel
@{
ViewData["Title"] = "Home page";
}
<div class="text-center">
<h1 class="display-4">Welcome</h1>
<p>Learn about <a href="https://docs.microsoft.com/aspnet/core">building Web apps with ASP.NET Core</a>.</p>
</div>

8
modules/OpenIddict/app/OpenIddict.Demo.Client/Pages/Privacy.cshtml

@ -1,8 +0,0 @@
@page
@model PrivacyModel
@{
ViewData["Title"] = "Privacy Policy";
}
<h1>@ViewData["Title"]</h1>
<p>Use this page to detail your site's privacy policy.</p>

18
modules/OpenIddict/app/OpenIddict.Demo.Client/Pages/Privacy.cshtml.cs

@ -1,18 +0,0 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace OpenIddict.Demo.Client.Pages;
public class PrivacyModel : PageModel
{
private readonly ILogger<PrivacyModel> _logger;
public PrivacyModel(ILogger<PrivacyModel> logger)
{
_logger = logger;
}
public void OnGet()
{
}
}

25
modules/OpenIddict/app/OpenIddict.Demo.Client/Program.cs

@ -1,25 +0,0 @@
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddRazorPages();
var app = builder.Build();
// Configure the HTTP request pipeline.
if (!app.Environment.IsDevelopment())
{
app.UseExceptionHandler("/Error");
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
}
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseRouting();
app.UseAuthorization();
app.MapRazorPages();
app.Run();

28
modules/OpenIddict/app/OpenIddict.Demo.Client/Properties/launchSettings.json

@ -1,28 +0,0 @@
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:46390",
"sslPort": 44369
}
},
"profiles": {
"OpenIddict.Demo.Client": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"applicationUrl": "https://localhost:7210;http://localhost:5210",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}

9
modules/OpenIddict/app/OpenIddict.Demo.Client/appsettings.Development.json

@ -1,9 +0,0 @@
{
"DetailedErrors": true,
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
}
}

9
modules/OpenIddict/app/OpenIddict.Demo.Client/appsettings.json

@ -1,9 +0,0 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*"
}

97
modules/OpenIddict/app/OpenIddict.Demo.Server/EntityFrameworkCore/ServerDataSeedContributor.cs

@ -0,0 +1,97 @@
using System.Globalization;
using OpenIddict.Abstractions;
using Volo.Abp.Data;
using Volo.Abp.DependencyInjection;
using Volo.Abp.MultiTenancy;
namespace OpenIddict.Demo.Server.EntityFrameworkCore;
public class ServerDataSeedContributor: IDataSeedContributor, ITransientDependency
{
private readonly ICurrentTenant _currentTenant;
private readonly IOpenIddictApplicationManager _applicationManager;
private readonly IOpenIddictScopeManager _scopeManager;
public ServerDataSeedContributor(
ICurrentTenant currentTenant,
IOpenIddictApplicationManager applicationManager,
IOpenIddictScopeManager scopeManager)
{
_currentTenant = currentTenant;
_applicationManager = applicationManager;
_scopeManager = scopeManager;
}
public async Task SeedAsync(DataSeedContext context)
{
if (await _scopeManager.FindByNameAsync("OpenIddictDemoAPI") == null)
{
await _scopeManager.CreateAsync(new OpenIddictScopeDescriptor()
{
DisplayName = "OpenIddict Demo API access",
DisplayNames =
{
[CultureInfo.GetCultureInfo("zh-Hans")] = "演示 OpenIddict API 访问",
[CultureInfo.GetCultureInfo("tr")] = "OpenIddict Demo API erişimi"
},
Name = "OpenIddictDemoAPI",
Resources =
{
"OpenIddictDemoAPIResource"
}
});
}
if (await _applicationManager.FindByClientIdAsync("MyClient") == null)
{
await _applicationManager.CreateAsync(new OpenIddictApplicationDescriptor
{
ClientId = "MyClient",
ClientSecret = "901564A5-E7FE-42CB-B10D-61EF6A8F3654",
ConsentType = OpenIddictConstants.ConsentTypes.Explicit,
DisplayName = "My Client Application",
PostLogoutRedirectUris =
{
new Uri("https://localhost:44302/signout-callback-oidc")
},
RedirectUris =
{
new Uri("https://localhost:44302/signin-oidc"),
new Uri("https://localhost:4200")
},
Permissions =
{
OpenIddictConstants.Permissions.Endpoints.Authorization,
OpenIddictConstants.Permissions.Endpoints.Token,
OpenIddictConstants.Permissions.Endpoints.Device,
OpenIddictConstants.Permissions.Endpoints.Introspection,
OpenIddictConstants.Permissions.Endpoints.Revocation,
OpenIddictConstants.Permissions.Endpoints.Logout,
OpenIddictConstants.Permissions.GrantTypes.AuthorizationCode,
OpenIddictConstants.Permissions.GrantTypes.Implicit,
OpenIddictConstants.Permissions.GrantTypes.Password,
OpenIddictConstants.Permissions.GrantTypes.RefreshToken,
OpenIddictConstants.Permissions.GrantTypes.DeviceCode,
OpenIddictConstants.Permissions.GrantTypes.ClientCredentials,
OpenIddictConstants.Permissions.ResponseTypes.Code,
OpenIddictConstants.Permissions.ResponseTypes.CodeIdToken,
OpenIddictConstants.Permissions.ResponseTypes.CodeIdTokenToken,
OpenIddictConstants.Permissions.ResponseTypes.CodeToken,
OpenIddictConstants.Permissions.ResponseTypes.IdToken,
OpenIddictConstants.Permissions.ResponseTypes.IdTokenToken,
OpenIddictConstants.Permissions.ResponseTypes.None,
OpenIddictConstants.Permissions.ResponseTypes.Token,
OpenIddictConstants.Permissions.Scopes.Email,
OpenIddictConstants.Permissions.Scopes.Profile,
OpenIddictConstants.Permissions.Scopes.Roles,
OpenIddictConstants.Permissions.Scopes.Address,
OpenIddictConstants.Permissions.Scopes.Phone,
OpenIddictConstants.Permissions.Prefixes.Scope + "OpenIddictDemoAPI"
}
});
}
}
}

32
modules/OpenIddict/app/OpenIddict.Demo.Server/EntityFrameworkCore/ServerDbContext.cs

@ -0,0 +1,32 @@
using Microsoft.EntityFrameworkCore;
using Volo.Abp.Data;
using Volo.Abp.EntityFrameworkCore;
using Volo.Abp.FeatureManagement.EntityFrameworkCore;
using Volo.Abp.Identity.EntityFrameworkCore;
using Volo.Abp.OpenIddict.EntityFrameworkCore;
using Volo.Abp.PermissionManagement.EntityFrameworkCore;
using Volo.Abp.SettingManagement.EntityFrameworkCore;
namespace OpenIddict.Demo.Server.EntityFrameworkCore;
[ConnectionStringName("Default")]
public class ServerDbContext : AbpDbContext<ServerDbContext>
{
public ServerDbContext(DbContextOptions<ServerDbContext> options)
: base(options)
{
}
protected override void OnModelCreating(ModelBuilder builder)
{
base.OnModelCreating(builder);
builder.ConfigureIdentity();
builder.ConfigurePermissionManagement();
builder.ConfigureSettingManagement();
builder.ConfigureFeatureManagement();
builder.ConfigureOpenIddict();
}
}

25
modules/OpenIddict/app/OpenIddict.Demo.Server/EntityFrameworkCore/ServerDbContextFactory.cs

@ -0,0 +1,25 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Design;
namespace OpenIddict.Demo.Server.EntityFrameworkCore;
public class ServerDbContextFactory : IDesignTimeDbContextFactory<ServerDbContext>
{
public ServerDbContext CreateDbContext(string[] args)
{
var configuration = BuildConfiguration();
var builder = new DbContextOptionsBuilder<ServerDbContext>()
.UseSqlServer(configuration.GetConnectionString("Default"));
return new ServerDbContext(builder.Options);
}
private static IConfigurationRoot BuildConfiguration()
{
var builder = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory())
.AddJsonFile("appsettings.json", optional: false);
return builder.Build();
}
}

1203
modules/OpenIddict/app/OpenIddict.Demo.Server/Migrations/20220329055013_Initial.Designer.cs

File diff suppressed because it is too large

706
modules/OpenIddict/app/OpenIddict.Demo.Server/Migrations/20220329055013_Initial.cs

@ -0,0 +1,706 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace OpenIddict.Demo.Server.Migrations
{
public partial class Initial : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "AbpClaimTypes",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Name = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
Required = table.Column<bool>(type: "bit", nullable: false),
IsStatic = table.Column<bool>(type: "bit", nullable: false),
Regex = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
RegexDescription = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
Description = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
ValueType = table.Column<int>(type: "int", nullable: false),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpClaimTypes", x => x.Id);
});
migrationBuilder.CreateTable(
name: "AbpFeatureValues",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
Value = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
ProviderName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
ProviderKey = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpFeatureValues", x => x.Id);
});
migrationBuilder.CreateTable(
name: "AbpLinkUsers",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
SourceUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
SourceTenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
TargetUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
TargetTenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpLinkUsers", x => x.Id);
});
migrationBuilder.CreateTable(
name: "AbpOpenIddictApplications",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ClientId = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
ClientSecret = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConsentType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
DisplayName = table.Column<string>(type: "nvarchar(max)", nullable: true),
DisplayNames = table.Column<string>(type: "nvarchar(max)", nullable: true),
Permissions = table.Column<string>(type: "nvarchar(max)", nullable: true),
PostLogoutRedirectUris = table.Column<string>(type: "nvarchar(max)", nullable: true),
Properties = table.Column<string>(type: "nvarchar(max)", nullable: true),
RedirectUris = table.Column<string>(type: "nvarchar(max)", nullable: true),
Requirements = table.Column<string>(type: "nvarchar(max)", nullable: true),
Type = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpOpenIddictApplications", x => x.Id);
});
migrationBuilder.CreateTable(
name: "AbpOpenIddictScopes",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Description = table.Column<string>(type: "nvarchar(max)", nullable: true),
Descriptions = table.Column<string>(type: "nvarchar(max)", nullable: true),
DisplayName = table.Column<string>(type: "nvarchar(max)", nullable: true),
DisplayNames = table.Column<string>(type: "nvarchar(max)", nullable: true),
Name = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Properties = table.Column<string>(type: "nvarchar(max)", nullable: true),
Resources = table.Column<string>(type: "nvarchar(max)", nullable: true),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpOpenIddictScopes", x => x.Id);
});
migrationBuilder.CreateTable(
name: "AbpOrganizationUnits",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
ParentId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
Code = table.Column<string>(type: "nvarchar(95)", maxLength: 95, nullable: false),
DisplayName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpOrganizationUnits", x => x.Id);
table.ForeignKey(
name: "FK_AbpOrganizationUnits_AbpOrganizationUnits_ParentId",
column: x => x.ParentId,
principalTable: "AbpOrganizationUnits",
principalColumn: "Id");
});
migrationBuilder.CreateTable(
name: "AbpPermissionGrants",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
ProviderName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
ProviderKey = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpPermissionGrants", x => x.Id);
});
migrationBuilder.CreateTable(
name: "AbpRoles",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
Name = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
NormalizedName = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
IsDefault = table.Column<bool>(type: "bit", nullable: false),
IsStatic = table.Column<bool>(type: "bit", nullable: false),
IsPublic = table.Column<bool>(type: "bit", nullable: false),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpRoles", x => x.Id);
});
migrationBuilder.CreateTable(
name: "AbpSecurityLogs",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
ApplicationName = table.Column<string>(type: "nvarchar(96)", maxLength: 96, nullable: true),
Identity = table.Column<string>(type: "nvarchar(96)", maxLength: 96, nullable: true),
Action = table.Column<string>(type: "nvarchar(96)", maxLength: 96, nullable: true),
UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
UserName = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
TenantName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
ClientId = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
CorrelationId = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
ClientIpAddress = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
BrowserInfo = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpSecurityLogs", x => x.Id);
});
migrationBuilder.CreateTable(
name: "AbpSettings",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
Value = table.Column<string>(type: "nvarchar(2048)", maxLength: 2048, nullable: false),
ProviderName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
ProviderKey = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpSettings", x => x.Id);
});
migrationBuilder.CreateTable(
name: "AbpUsers",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
UserName = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
NormalizedUserName = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
Name = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
Surname = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
Email = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
NormalizedEmail = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
EmailConfirmed = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
PasswordHash = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
SecurityStamp = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
IsExternal = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
PhoneNumber = table.Column<string>(type: "nvarchar(16)", maxLength: 16, nullable: true),
PhoneNumberConfirmed = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
IsActive = table.Column<bool>(type: "bit", nullable: false),
TwoFactorEnabled = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
LockoutEnd = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: true),
LockoutEnabled = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
AccessFailedCount = table.Column<int>(type: "int", nullable: false, defaultValue: 0),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpUsers", x => x.Id);
});
migrationBuilder.CreateTable(
name: "AbpOpenIddictAuthorizations",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ApplicationId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
CreationDate = table.Column<DateTime>(type: "datetime2", nullable: true),
Properties = table.Column<string>(type: "nvarchar(max)", nullable: true),
Scopes = table.Column<string>(type: "nvarchar(max)", nullable: true),
Status = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
Subject = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: true),
Type = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpOpenIddictAuthorizations", x => x.Id);
table.ForeignKey(
name: "FK_AbpOpenIddictAuthorizations_AbpOpenIddictApplications_ApplicationId",
column: x => x.ApplicationId,
principalTable: "AbpOpenIddictApplications",
principalColumn: "Id");
});
migrationBuilder.CreateTable(
name: "AbpOrganizationUnitRoles",
columns: table => new
{
RoleId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
OrganizationUnitId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpOrganizationUnitRoles", x => new { x.OrganizationUnitId, x.RoleId });
table.ForeignKey(
name: "FK_AbpOrganizationUnitRoles_AbpOrganizationUnits_OrganizationUnitId",
column: x => x.OrganizationUnitId,
principalTable: "AbpOrganizationUnits",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_AbpOrganizationUnitRoles_AbpRoles_RoleId",
column: x => x.RoleId,
principalTable: "AbpRoles",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "AbpRoleClaims",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
RoleId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
ClaimType = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
ClaimValue = table.Column<string>(type: "nvarchar(1024)", maxLength: 1024, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpRoleClaims", x => x.Id);
table.ForeignKey(
name: "FK_AbpRoleClaims_AbpRoles_RoleId",
column: x => x.RoleId,
principalTable: "AbpRoles",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "AbpUserClaims",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
ClaimType = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
ClaimValue = table.Column<string>(type: "nvarchar(1024)", maxLength: 1024, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpUserClaims", x => x.Id);
table.ForeignKey(
name: "FK_AbpUserClaims_AbpUsers_UserId",
column: x => x.UserId,
principalTable: "AbpUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "AbpUserLogins",
columns: table => new
{
UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
LoginProvider = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
ProviderKey = table.Column<string>(type: "nvarchar(196)", maxLength: 196, nullable: false),
ProviderDisplayName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpUserLogins", x => new { x.UserId, x.LoginProvider });
table.ForeignKey(
name: "FK_AbpUserLogins_AbpUsers_UserId",
column: x => x.UserId,
principalTable: "AbpUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "AbpUserOrganizationUnits",
columns: table => new
{
UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
OrganizationUnitId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpUserOrganizationUnits", x => new { x.OrganizationUnitId, x.UserId });
table.ForeignKey(
name: "FK_AbpUserOrganizationUnits_AbpOrganizationUnits_OrganizationUnitId",
column: x => x.OrganizationUnitId,
principalTable: "AbpOrganizationUnits",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_AbpUserOrganizationUnits_AbpUsers_UserId",
column: x => x.UserId,
principalTable: "AbpUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "AbpUserRoles",
columns: table => new
{
UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
RoleId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpUserRoles", x => new { x.UserId, x.RoleId });
table.ForeignKey(
name: "FK_AbpUserRoles_AbpRoles_RoleId",
column: x => x.RoleId,
principalTable: "AbpRoles",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_AbpUserRoles_AbpUsers_UserId",
column: x => x.UserId,
principalTable: "AbpUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "AbpUserTokens",
columns: table => new
{
UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
LoginProvider = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
Value = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpUserTokens", x => new { x.UserId, x.LoginProvider, x.Name });
table.ForeignKey(
name: "FK_AbpUserTokens_AbpUsers_UserId",
column: x => x.UserId,
principalTable: "AbpUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "AbpOpenIddictTokens",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ApplicationId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
AuthorizationId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
CreationDate = table.Column<DateTime>(type: "datetime2", nullable: true),
ExpirationDate = table.Column<DateTime>(type: "datetime2", nullable: true),
Payload = table.Column<string>(type: "nvarchar(max)", nullable: true),
Properties = table.Column<string>(type: "nvarchar(max)", nullable: true),
RedemptionDate = table.Column<DateTime>(type: "datetime2", nullable: true),
ReferenceId = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
Status = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
Subject = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: true),
Type = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpOpenIddictTokens", x => x.Id);
table.ForeignKey(
name: "FK_AbpOpenIddictTokens_AbpOpenIddictApplications_ApplicationId",
column: x => x.ApplicationId,
principalTable: "AbpOpenIddictApplications",
principalColumn: "Id");
table.ForeignKey(
name: "FK_AbpOpenIddictTokens_AbpOpenIddictAuthorizations_AuthorizationId",
column: x => x.AuthorizationId,
principalTable: "AbpOpenIddictAuthorizations",
principalColumn: "Id");
});
migrationBuilder.CreateIndex(
name: "IX_AbpFeatureValues_Name_ProviderName_ProviderKey",
table: "AbpFeatureValues",
columns: new[] { "Name", "ProviderName", "ProviderKey" },
unique: true,
filter: "[ProviderName] IS NOT NULL AND [ProviderKey] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_AbpLinkUsers_SourceUserId_SourceTenantId_TargetUserId_TargetTenantId",
table: "AbpLinkUsers",
columns: new[] { "SourceUserId", "SourceTenantId", "TargetUserId", "TargetTenantId" },
unique: true,
filter: "[SourceTenantId] IS NOT NULL AND [TargetTenantId] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_AbpOpenIddictApplications_ClientId",
table: "AbpOpenIddictApplications",
column: "ClientId",
unique: true,
filter: "[ClientId] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_AbpOpenIddictAuthorizations_ApplicationId_Status_Subject_Type",
table: "AbpOpenIddictAuthorizations",
columns: new[] { "ApplicationId", "Status", "Subject", "Type" });
migrationBuilder.CreateIndex(
name: "IX_AbpOpenIddictScopes_Name",
table: "AbpOpenIddictScopes",
column: "Name",
unique: true,
filter: "[Name] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_AbpOpenIddictTokens_ApplicationId_Status_Subject_Type",
table: "AbpOpenIddictTokens",
columns: new[] { "ApplicationId", "Status", "Subject", "Type" });
migrationBuilder.CreateIndex(
name: "IX_AbpOpenIddictTokens_AuthorizationId",
table: "AbpOpenIddictTokens",
column: "AuthorizationId");
migrationBuilder.CreateIndex(
name: "IX_AbpOpenIddictTokens_ReferenceId",
table: "AbpOpenIddictTokens",
column: "ReferenceId",
unique: true,
filter: "[ReferenceId] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_AbpOrganizationUnitRoles_RoleId_OrganizationUnitId",
table: "AbpOrganizationUnitRoles",
columns: new[] { "RoleId", "OrganizationUnitId" });
migrationBuilder.CreateIndex(
name: "IX_AbpOrganizationUnits_Code",
table: "AbpOrganizationUnits",
column: "Code");
migrationBuilder.CreateIndex(
name: "IX_AbpOrganizationUnits_ParentId",
table: "AbpOrganizationUnits",
column: "ParentId");
migrationBuilder.CreateIndex(
name: "IX_AbpPermissionGrants_TenantId_Name_ProviderName_ProviderKey",
table: "AbpPermissionGrants",
columns: new[] { "TenantId", "Name", "ProviderName", "ProviderKey" },
unique: true,
filter: "[TenantId] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_AbpRoleClaims_RoleId",
table: "AbpRoleClaims",
column: "RoleId");
migrationBuilder.CreateIndex(
name: "IX_AbpRoles_NormalizedName",
table: "AbpRoles",
column: "NormalizedName");
migrationBuilder.CreateIndex(
name: "IX_AbpSecurityLogs_TenantId_Action",
table: "AbpSecurityLogs",
columns: new[] { "TenantId", "Action" });
migrationBuilder.CreateIndex(
name: "IX_AbpSecurityLogs_TenantId_ApplicationName",
table: "AbpSecurityLogs",
columns: new[] { "TenantId", "ApplicationName" });
migrationBuilder.CreateIndex(
name: "IX_AbpSecurityLogs_TenantId_Identity",
table: "AbpSecurityLogs",
columns: new[] { "TenantId", "Identity" });
migrationBuilder.CreateIndex(
name: "IX_AbpSecurityLogs_TenantId_UserId",
table: "AbpSecurityLogs",
columns: new[] { "TenantId", "UserId" });
migrationBuilder.CreateIndex(
name: "IX_AbpSettings_Name_ProviderName_ProviderKey",
table: "AbpSettings",
columns: new[] { "Name", "ProviderName", "ProviderKey" },
unique: true,
filter: "[ProviderName] IS NOT NULL AND [ProviderKey] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_AbpUserClaims_UserId",
table: "AbpUserClaims",
column: "UserId");
migrationBuilder.CreateIndex(
name: "IX_AbpUserLogins_LoginProvider_ProviderKey",
table: "AbpUserLogins",
columns: new[] { "LoginProvider", "ProviderKey" });
migrationBuilder.CreateIndex(
name: "IX_AbpUserOrganizationUnits_UserId_OrganizationUnitId",
table: "AbpUserOrganizationUnits",
columns: new[] { "UserId", "OrganizationUnitId" });
migrationBuilder.CreateIndex(
name: "IX_AbpUserRoles_RoleId_UserId",
table: "AbpUserRoles",
columns: new[] { "RoleId", "UserId" });
migrationBuilder.CreateIndex(
name: "IX_AbpUsers_Email",
table: "AbpUsers",
column: "Email");
migrationBuilder.CreateIndex(
name: "IX_AbpUsers_NormalizedEmail",
table: "AbpUsers",
column: "NormalizedEmail");
migrationBuilder.CreateIndex(
name: "IX_AbpUsers_NormalizedUserName",
table: "AbpUsers",
column: "NormalizedUserName");
migrationBuilder.CreateIndex(
name: "IX_AbpUsers_UserName",
table: "AbpUsers",
column: "UserName");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "AbpClaimTypes");
migrationBuilder.DropTable(
name: "AbpFeatureValues");
migrationBuilder.DropTable(
name: "AbpLinkUsers");
migrationBuilder.DropTable(
name: "AbpOpenIddictScopes");
migrationBuilder.DropTable(
name: "AbpOpenIddictTokens");
migrationBuilder.DropTable(
name: "AbpOrganizationUnitRoles");
migrationBuilder.DropTable(
name: "AbpPermissionGrants");
migrationBuilder.DropTable(
name: "AbpRoleClaims");
migrationBuilder.DropTable(
name: "AbpSecurityLogs");
migrationBuilder.DropTable(
name: "AbpSettings");
migrationBuilder.DropTable(
name: "AbpUserClaims");
migrationBuilder.DropTable(
name: "AbpUserLogins");
migrationBuilder.DropTable(
name: "AbpUserOrganizationUnits");
migrationBuilder.DropTable(
name: "AbpUserRoles");
migrationBuilder.DropTable(
name: "AbpUserTokens");
migrationBuilder.DropTable(
name: "AbpOpenIddictAuthorizations");
migrationBuilder.DropTable(
name: "AbpOrganizationUnits");
migrationBuilder.DropTable(
name: "AbpRoles");
migrationBuilder.DropTable(
name: "AbpUsers");
migrationBuilder.DropTable(
name: "AbpOpenIddictApplications");
}
}
}

1201
modules/OpenIddict/app/OpenIddict.Demo.Server/Migrations/ServerDbContextModelSnapshot.cs

File diff suppressed because it is too large

72
modules/OpenIddict/app/OpenIddict.Demo.Server/OpenIddict.Demo.Server.csproj

@ -6,4 +6,76 @@
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Mvc\Volo.Abp.AspNetCore.Mvc.csproj" />
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.Autofac\Volo.Abp.Autofac.csproj" />
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.EntityFrameworkCore.SqlServer\Volo.Abp.EntityFrameworkCore.SqlServer.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\Volo.Abp.OpenIddict.AspNetCore\Volo.Abp.OpenIddict.AspNetCore.csproj" />
<ProjectReference Include="..\..\src\Volo.Abp.OpenIddict.Domain\Volo.Abp.OpenIddict.Domain.csproj" />
<ProjectReference Include="..\..\src\Volo.Abp.OpenIddict.EntityFrameworkCore\Volo.Abp.OpenIddict.EntityFrameworkCore.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\..\modules\account\src\Volo.Abp.Account.Application\Volo.Abp.Account.Application.csproj" />
<ProjectReference Include="..\..\..\..\modules\account\src\Volo.Abp.Account.HttpApi\Volo.Abp.Account.HttpApi.csproj" />
<ProjectReference Include="..\..\..\..\modules\account\src\Volo.Abp.Account.Web\Volo.Abp.Account.Web.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\..\modules\permission-management\src\Volo.Abp.PermissionManagement.Application\Volo.Abp.PermissionManagement.Application.csproj" />
<ProjectReference Include="..\..\..\..\modules\permission-management\src\Volo.Abp.PermissionManagement.EntityFrameworkCore\Volo.Abp.PermissionManagement.EntityFrameworkCore.csproj" />
<ProjectReference Include="..\..\..\..\modules\permission-management\src\Volo.Abp.PermissionManagement.HttpApi\Volo.Abp.PermissionManagement.HttpApi.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\..\modules\identity\src\Volo.Abp.PermissionManagement.Domain.Identity\Volo.Abp.PermissionManagement.Domain.Identity.csproj" />
<ProjectReference Include="..\..\..\..\modules\identity\src\Volo.Abp.Identity.Application\Volo.Abp.Identity.Application.csproj" />
<ProjectReference Include="..\..\..\..\modules\identity\src\Volo.Abp.Identity.HttpApi\Volo.Abp.Identity.HttpApi.csproj" />
<ProjectReference Include="..\..\..\..\modules\identity\src\Volo.Abp.Identity.EntityFrameworkCore\Volo.Abp.Identity.EntityFrameworkCore.csproj" />
<ProjectReference Include="..\..\..\..\modules\identity\src\Volo.Abp.Identity.Web\Volo.Abp.Identity.Web.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\..\modules\feature-management\src\Volo.Abp.Featuremanagement.Application\Volo.Abp.Featuremanagement.Application.csproj" />
<ProjectReference Include="..\..\..\..\modules\feature-management\src\Volo.Abp.Featuremanagement.EntityFrameworkCore\Volo.Abp.Featuremanagement.EntityFrameworkCore.csproj" />
<ProjectReference Include="..\..\..\..\modules\feature-management\src\Volo.Abp.Featuremanagement.HttpApi\Volo.Abp.Featuremanagement.HttpApi.csproj" />
<ProjectReference Include="..\..\..\..\modules\feature-management\src\Volo.Abp.Featuremanagement.Web\Volo.Abp.Featuremanagement.Web.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\..\modules\setting-management\src\Volo.Abp.SettingManagement.Application\Volo.Abp.SettingManagement.Application.csproj" />
<ProjectReference Include="..\..\..\..\modules\setting-management\src\Volo.Abp.SettingManagement.EntityFrameworkCore\Volo.Abp.SettingManagement.EntityFrameworkCore.csproj" />
<ProjectReference Include="..\..\..\..\modules\setting-management\src\Volo.Abp.SettingManagement.HttpApi\Volo.Abp.SettingManagement.HttpApi.csproj" />
<ProjectReference Include="..\..\..\..\modules\setting-management\src\Volo.Abp.SettingManagement.Web\Volo.Abp.SettingManagement.Web.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\..\modules\basic-theme\src\Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic\Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>compile; contentFiles; build; buildMultitargeting; buildTransitive; analyzers; native</PrivateAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<None Update="Pages\**\*.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Pages\**\*.css">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<_ContentIncludedByDefault Remove="Pages\Shared\_Layout.cshtml" />
<_ContentIncludedByDefault Remove="Pages\Shared\_ValidationScriptsPartial.cshtml" />
<_ContentIncludedByDefault Remove="wwwroot\js\site.js" />
</ItemGroup>
</Project>

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save