updated Microser (gateway)
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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;
|
||||
|
||||
|
||||
@@ -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 />
|
||||
@@ -718,4 +718,4 @@ namespace Microser.IdS.Migrations.ConfigurationDb
|
||||
name: "IdentityResources");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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 />
|
||||
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user