Skip to content

Commit

Permalink
fix: identity jwt configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobritodev committed Sep 8, 2021
1 parent 415c8a4 commit 947bc72
Show file tree
Hide file tree
Showing 18 changed files with 117 additions and 15 deletions.
Binary file not shown.
4 changes: 2 additions & 2 deletions src/building-blocks/DevStore.Core/DevStore.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FluentValidation" Version="10.1.0" />
<PackageReference Include="FluentValidation" Version="10.3.3" />
<PackageReference Include="mediatr" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="5.0.0" />
<PackageReference Include="NetDevPack" Version="1.1.1" />
<PackageReference Include="NetDevPack" Version="5.3.0" />
</ItemGroup>

</Project>
Binary file not shown.
Binary file modified src/services/DevStore.Billing.API/DevStore.Billing.API.csproj
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Bogus" Version="33.0.2" />
<PackageReference Include="NetDevPack" Version="5.2.0" />
<PackageReference Include="Bogus" Version="33.1.1" />
<PackageReference Include="NetDevPack" Version="5.3.0" />
</ItemGroup>

</Project>
Binary file modified src/services/DevStore.Catalog.API/DevStore.Catalog.API.csproj
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
}
},
"ConnectionStrings": {
//"DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=Catalog;Trusted_Connection=True;MultipleActiveResultSets=true"
//"DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=DSCatalog;Trusted_Connection=True;MultipleActiveResultSets=true"
"DefaultConnection": "Server=.;Initial Catalog=DSCatalog;Persist Security Info=False;User ID=sa;Password=@Password1;MultipleActiveResultSets=False;Connection Timeout=30;"
},
"MessageQueueConnection": {
Expand Down
Binary file modified src/services/DevStore.Clients.API/DevStore.Clients.API.csproj
Binary file not shown.
Binary file modified src/services/DevStore.Identity.API/Configuration/IdentityConfig.cs
Binary file not shown.
Binary file modified src/services/DevStore.Identity.API/Data/ApplicationDbContext.cs
Binary file not shown.
Binary file modified src/services/DevStore.Identity.API/DevStore.Identity.API.csproj
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,26 @@ protected override void Up(MigrationBuilder migrationBuilder)
table.PrimaryKey("PK_RefreshTokens", x => x.Id);
});

migrationBuilder.CreateTable(
name: "SecurityKeys",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Parameters = table.Column<string>(type: "nvarchar(max)", nullable: true),
KeyId = table.Column<string>(type: "nvarchar(max)", nullable: true),
Type = table.Column<string>(type: "nvarchar(max)", nullable: true),
JwsAlgorithm = table.Column<string>(type: "nvarchar(max)", nullable: true),
JweAlgorithm = table.Column<string>(type: "nvarchar(max)", nullable: true),
JweEncryption = table.Column<string>(type: "nvarchar(max)", nullable: true),
CreationDate = table.Column<DateTime>(type: "datetime2", nullable: false),
JwkType = table.Column<int>(type: "int", nullable: false),
IsRevoked = table.Column<bool>(type: "bit", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_SecurityKeys", x => x.Id);
});

migrationBuilder.CreateTable(
name: "AspNetRoleClaims",
columns: table => new
Expand Down Expand Up @@ -226,6 +246,9 @@ protected override void Down(MigrationBuilder migrationBuilder)
migrationBuilder.DropTable(
name: "RefreshTokens");

migrationBuilder.DropTable(
name: "SecurityKeys");

migrationBuilder.DropTable(
name: "AspNetRoles");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("ProductVersion", "5.0.6")
.HasAnnotation("ProductVersion", "5.0.9")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);

modelBuilder.Entity("DevStore.Identity.API.Models.RefreshToken", b =>
Expand Down Expand Up @@ -239,6 +239,44 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("AspNetUserTokens");
});

modelBuilder.Entity("NetDevPack.Security.Jwt.Model.SecurityKeyWithPrivate", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<DateTime>("CreationDate")
.HasColumnType("datetime2");
b.Property<bool>("IsRevoked")
.HasColumnType("bit");
b.Property<string>("JweAlgorithm")
.HasColumnType("nvarchar(max)");
b.Property<string>("JweEncryption")
.HasColumnType("nvarchar(max)");
b.Property<int>("JwkType")
.HasColumnType("int");
b.Property<string>("JwsAlgorithm")
.HasColumnType("nvarchar(max)");
b.Property<string>("KeyId")
.HasColumnType("nvarchar(max)");
b.Property<string>("Parameters")
.HasColumnType("nvarchar(max)");
b.Property<string>("Type")
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.ToTable("SecurityKeys");
});

modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
{
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
Expand Down
Binary file modified src/services/DevStore.Orders.API/DevStore.Orders.API.csproj
Binary file not shown.
Binary file modified src/services/DevStore.Orders.Infra/DevStore.Orders.Infra.csproj
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Grpc.AspNetCore" Version="2.37.0" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.10.8" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.6" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Abstractions" Version="5.0.6" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="5.0.6" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="5.0.6" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.1.4" />
<PackageReference Include="Grpc.AspNetCore" Version="2.39.0" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.11.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.9" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Abstractions" Version="5.0.9" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="5.0.9" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="5.0.9">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.1" />
</ItemGroup>

<ItemGroup>
Expand Down
Binary file modified src/web/DevStore.WebApp.MVC/DevStore.WebApp.MVC.csproj
Binary file not shown.

0 comments on commit 947bc72

Please sign in to comment.