updated Microser (gateway)

This commit is contained in:
M. Akif Tokatlioglu
2024-03-31 10:10:36 +03:00
parent 7c19b96d81
commit 2f2a39584d
22 changed files with 267 additions and 24 deletions

View File

@@ -56,6 +56,30 @@ namespace Microser.IdS
Enabled = true
},
new Client
{
ClientId = "dotnet_api_swagger",
ClientName = "Dotnet Swagger UI Auth",
ClientSecrets = {
new Secret("76CD4B0FC93846F08395BF8994B86BC6".Sha256())
},
AllowedGrantTypes = GrantTypes.Code,
RequirePkce = true,
RequireClientSecret = true,
AllowedCorsOrigins = { "https://localhost:6001" },
AllowedScopes = {
IdentityServerConstants.StandardScopes.OpenId,
IdentityServerConstants.StandardScopes.Profile,
IdentityServerConstants.StandardScopes.Address,
IdentityServerConstants.StandardScopes.Email,
"roles",
"scope1",
"microser_api_weather"
},
RedirectUris = { "https://localhost:6001/swagger/oauth2-redirect.html" },
Enabled = true
},
// m2m client credentials flow client
new Client
{

View File

@@ -295,7 +295,7 @@ CREATE UNIQUE INDEX "IX_IdentityResourceProperties_IdentityResourceId_Key" ON "I
CREATE UNIQUE INDEX "IX_IdentityResources_Name" ON "IdentityResources" ("Name");
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20240312131641_Configuration', '8.0.0');
VALUES ('20240316101904_Configuration', '8.0.0');
COMMIT;

View File

@@ -11,7 +11,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace Microser.IdS.Migrations.ConfigurationDb
{
[DbContext(typeof(ConfigurationDbContext))]
[Migration("20240312131641_Configuration")]
[Migration("20240316101904_Configuration")]
partial class Configuration
{
/// <inheritdoc />

View File

@@ -718,4 +718,4 @@ namespace Microser.IdS.Migrations.ConfigurationDb
name: "IdentityResources");
}
}
}
}

View File

@@ -93,7 +93,7 @@ CREATE INDEX "IX_ServerSideSessions_SessionId" ON "ServerSideSessions" ("Session
CREATE INDEX "IX_ServerSideSessions_SubjectId" ON "ServerSideSessions" ("SubjectId");
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20240312131625_Grants', '8.0.0');
VALUES ('20240316101846_Grants', '8.0.0');
COMMIT;

View File

@@ -11,7 +11,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace Microser.IdS.Migrations.PersistedGrantDb
{
[DbContext(typeof(PersistedGrantDbContext))]
[Migration("20240312131625_Grants")]
[Migration("20240316101846_Grants")]
partial class Grants
{
/// <inheritdoc />

View File

@@ -1,4 +1,5 @@
using Microsoft.EntityFrameworkCore.Migrations;
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
@@ -204,4 +205,4 @@ namespace Microser.IdS.Migrations.PersistedGrantDb
name: "ServerSideSessions");
}
}
}
}