Skip to content

Commit

Permalink
feat: security upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobritodev committed Apr 18, 2022
1 parent 8af1e89 commit d6f0c9a
Show file tree
Hide file tree
Showing 45 changed files with 65 additions and 25 deletions.
Binary file not shown.
Binary file modified src/api-gateways/DevStore.Bff.Checkout/Program.cs
Binary file not shown.
Binary file removed src/api-gateways/DevStore.Bff.Checkout/Startup.cs
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
"MessageBus": "host=localhost:5672;publisherConfirms=true;timeout=10;username=devstore;password=devstore00"
},
"AppSettings": {
"AuthenticationJwksUrl": "https://localhost:5421/jwks"
"JwksUri": "https://localhost:5421/jwks",
"Issuer": "https://devstore.academy",
"Audience": "DevStore"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
"MessageBus": "host=devstore-rabbit:5672;publisherConfirms=true;timeout=30;username=devstore;password=devstore"
},
"AppSettings": {
"AuthenticationJwksUrl": "https://devstore-api-identity:5101/jwks"
"JwksUri": "https://devstore-api-identity:5101/jwks",
"Issuer": "https://devstore.academy",
"Audience": "DevStore"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
"MessageBus": "host=devstore-rabbit:5672;publisherConfirms=true;timeout=30;username=devstore;password=devstore"
},
"AppSettings": {
"AuthenticationJwksUrl": "https://devstore-api-identity:5101/jwks"
"JwksUri": "https://devstore-api-identity:5101/jwks",
"Issuer": "https://devstore.academy",
"Audience": "DevStore"
}
}
Binary file not shown.
Binary file not shown.
Binary file modified src/building-blocks/DevStore.WebAPI.Core/Identity/JwtConfig.cs
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 @@ -7,13 +7,15 @@
}
},
"ConnectionStrings": {
"DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=DSBilling;Trusted_Connection=True;MultipleActiveResultSets=true"
"DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=DSBilling;Trusted_Connection=True;MultipleActiveResultSets=true"
},
"MessageQueueConnection": {
"MessageBus": "host=localhost:5672;publisherConfirms=true;timeout=10;username=devstore;password=devstore"
},
"AppSettings": {
"AuthenticationJwksUrl": "https://localhost:5421/jwks"
"JwksUri": "https://localhost:5421/jwks",
"Issuer": "https://devstore.academy",
"Audience": "DevStore"
},
"BillingConfig": {
"DefaultApiKey": "ak_ewr4dsWehiwAT",
Expand Down
4 changes: 3 additions & 1 deletion src/services/DevStore.Billing.API/appsettings.Docker.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"MessageBus": "host=devstore-rabbit:5672;publisherConfirms=true;timeout=30;username=devstore;password=devstore"
},
"AppSettings": {
"AuthenticationJwksUrl": "https://devstore-api-identity:5101/jwks"
"JwksUri": "https://devstore-api-identity:5101/jwks",
"Issuer": "https://devstore.academy",
"Audience": "DevStore"
},
"BillingConfig": {
"DefaultApiKey": "ak_ewr4dsWehiwAT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"MessageBus": "host=devstore-rabbit:5672;publisherConfirms=true;timeout=30;username=devstore;password=devstore"
},
"AppSettings": {
"AuthenticationJwksUrl": "https://devstore-api-identity:5101/jwks"
"JwksUri": "https://devstore-api-identity:5101/jwks",
"Issuer": "https://devstore.academy",
"Audience": "DevStore"
},
"BillingConfig": {
"DefaultApiKey": "ak_ewr4dsWehiwAT",
Expand Down
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,12 +7,14 @@
}
},
"ConnectionStrings": {
"DefaultConnection": "Server=localhost;Database=DSCatalog;MultipleActiveResultSets=true;User Id=sa;Password=MyDB@123"
"DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=DSCatalog;Trusted_Connection=True;MultipleActiveResultSets=true"
},
"MessageQueueConnection": {
"MessageBus": "host=localhost:5672;publisherConfirms=true;timeout=10;username=devstore;password=devstore"
},
"AppSettings": {
"AuthenticationJwksUrl": "https://localhost:5421/jwks"
"JwksUri": "https://localhost:5421/jwks",
"Issuer": "https://devstore.academy",
"Audience": "DevStore"
}
}
4 changes: 3 additions & 1 deletion src/services/DevStore.Catalog.API/appsettings.Docker.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
"MessageBus": "host=devstore-rabbit:5672;publisherConfirms=true;timeout=30;username=devstore;password=devstore"
},
"AppSettings": {
"AuthenticationJwksUrl": "https://devstore-api-identity:5101/jwks"
"JwksUri": "https://devstore-api-identity:5101/jwks",
"Issuer": "https://devstore.academy",
"Audience": "DevStore"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
"MessageBus": "host=devstore-rabbit:5672;publisherConfirms=true;timeout=30;username=devstore;password=devstore"
},
"AppSettings": {
"AuthenticationJwksUrl": "https://devstore-api-identity:5101/jwks"
"JwksUri": "https://devstore-api-identity:5101/jwks",
"Issuer": "https://devstore.academy",
"Audience": "DevStore"
}
}
Binary file modified src/services/DevStore.Customers.API/DevStore.Customers.API.csproj
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
"MessageBus": "host=localhost:5672;publisherConfirms=true;timeout=10;username=devstore;password=devstore"
},
"AppSettings": {
"AuthenticationJwksUrl": "https://localhost:5421/jwks"
"JwksUri": "https://localhost:5421/jwks",
"Issuer": "https://devstore.academy",
"Audience": "DevStore"
}
}
4 changes: 3 additions & 1 deletion src/services/DevStore.Customers.API/appsettings.Docker.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
"MessageBus": "host=devstore-rabbit:5672;publisherConfirms=true;timeout=30;username=devstore;password=devstore"
},
"AppSettings": {
"AuthenticationJwksUrl": "https://devstore-api-identity:5101/jwks"
"JwksUri": "https://devstore-api-identity:5101/jwks",
"Issuer": "https://devstore.academy",
"Audience": "DevStore"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
"MessageBus": "host=devstore-rabbit:5672;publisherConfirms=true;timeout=30;username=devstore;password=devstore"
},
"AppSettings": {
"AuthenticationJwksUrl": "https://devstore-api-identity:5101/jwks"
"JwksUri": "https://devstore-api-identity:5101/jwks",
"Issuer": "https://devstore.academy",
"Audience": "DevStore"
}
}
Binary file modified src/services/DevStore.Identity.API/Configuration/ApiConfig.cs
Binary file not shown.
Binary file modified src/services/DevStore.Identity.API/Configuration/IdentityConfig.cs
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified src/services/DevStore.Identity.API/DevStore.Identity.API.csproj
Binary file not shown.
Binary file not shown.
Binary file modified src/services/DevStore.Identity.API/Program.cs
Binary file not shown.
Binary file not shown.
6 changes: 5 additions & 1 deletion src/services/DevStore.Identity.API/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*"
"AllowedHosts": "*",
"AppJwtSettings": {
"Issuer": "https://devstore.academy",
"Audience": "DevStore"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
"MessageBus": "host=localhost:5672;publisherConfirms=true;timeout=10;username=devstore;password=devstore"
},
"AppSettings": {
"AuthenticationJwksUrl": "https://localhost:5421/jwks"
"JwksUri": "https://localhost:5421/jwks",
"Issuer": "https://devstore.academy",
"Audience": "DevStore"
}
}
4 changes: 3 additions & 1 deletion src/services/DevStore.Orders.API/appsettings.Docker.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
"MessageBus": "host=devstore-rabbit:5672;publisherConfirms=true;timeout=30;username=devstore;password=devstore"
},
"AppSettings": {
"AuthenticationJwksUrl": "https://devstore-api-identity:5101/jwks"
"JwksUri": "https://devstore-api-identity:5101/jwks",
"Issuer": "https://devstore.academy",
"Audience": "DevStore"
}
}
4 changes: 3 additions & 1 deletion src/services/DevStore.Orders.API/appsettings.Production.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
"MessageBus": "host=devstore-rabbit:5672;publisherConfirms=true;timeout=30;username=devstore;password=devstore"
},
"AppSettings": {
"AuthenticationJwksUrl": "https://devstore-api-identity:5101/jwks"
"JwksUri": "https://devstore-api-identity:5101/jwks",
"Issuer": "https://devstore.academy",
"Audience": "DevStore"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
<ItemGroup>
<PackageReference Include="Grpc.AspNetCore" Version="2.44.0" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.15.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Abstractions" Version="6.0.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.3">
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.4" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Abstractions" Version="6.0.4" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.4" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
"MessageBus": "host=localhost:5672;publisherConfirms=true;timeout=10;username=devstore;password=devstore"
},
"AppSettings": {
"AuthenticationJwksUrl": "https://localhost:5421/jwks"
"JwksUri": "https://localhost:5421/jwks",
"Issuer": "https://devstore.academy",
"Audience": "DevStore"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
"MessageBus": "host=devstore-rabbit:5672;publisherConfirms=true;timeout=30;username=devstore;password=devstore"
},
"AppSettings": {
"AuthenticationJwksUrl": "https://devstore-api-identity:5101/jwks"
"JwksUri": "https://devstore-api-identity:5101/jwks",
"Issuer": "https://devstore.academy",
"Audience": "DevStore"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
"MessageBus": "host=devstore-rabbit:5672;publisherConfirms=true;timeout=30;username=devstore;password=devstore"
},
"AppSettings": {
"AuthenticationJwksUrl": "https://devstore-api-identity:5101/jwks"
"JwksUri": "https://devstore-api-identity:5101/jwks",
"Issuer": "https://devstore.academy",
"Audience": "DevStore"
}
}
Binary file not shown.
Binary file modified src/web/DevStore.WebApp.MVC/Configuration/IdentityConfig.cs
Binary file not shown.
Binary file modified src/web/DevStore.WebApp.MVC/Configuration/WebAppConfig.cs
Binary file not shown.
Binary file modified src/web/DevStore.WebApp.MVC/Controllers/HomeController.cs
Binary file not shown.
Binary file modified src/web/DevStore.WebApp.MVC/DevStore.WebApp.MVC.csproj
Binary file not shown.
Binary file modified src/web/DevStore.WebApp.MVC/Extensions/ExceptionMiddleware.cs
Binary file not shown.
Binary file modified src/web/DevStore.WebApp.MVC/Program.cs
Binary file not shown.
Binary file modified src/web/DevStore.WebApp.MVC/Services/AuthService.cs
Binary file not shown.

0 comments on commit d6f0c9a

Please sign in to comment.