Skip to content

Commit

Permalink
Update .NET SDK to 9.0.100-preview.4.24267.66 (#456)
Browse files Browse the repository at this point in the history
* Update .NET SDK

Update .NET SDK to version 9.0.100-preview.4.24267.66.

---
updated-dependencies:
- dependency-name: Microsoft.NET.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: costellobot <[email protected]>

* Bump Microsoft.AspNetCore.AzureAppServices.HostingStartup from 9.0.0-preview.3.24172.13 to 9.0.0-preview.4.24267.6

Bumps Microsoft.AspNetCore.AzureAppServices.HostingStartup from 9.0.0-preview.3.24172.13 to 9.0.0-preview.4.24267.6.

---
updated-dependencies:
- dependency-name: Microsoft.AspNetCore.AzureAppServices.HostingStartup
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: costellobot <[email protected]>

* Fix build
- Bump Apple OAuth provider for preview 4.
- Fix ambiguous method.

---------

Signed-off-by: costellobot <[email protected]>
Co-authored-by: Martin Costello <[email protected]>
  • Loading branch information
costellobot and martincostello committed May 28, 2024
1 parent 7afedd8 commit 2503148
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 22 deletions.
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "9.0.100-preview.3.24204.13",
"version": "9.0.100-preview.4.24267.66",
"allowPrerelease": false
}
}
36 changes: 17 additions & 19 deletions src/SignInWithApple/SecurityHeadersMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,23 @@ internal sealed class SecurityHeadersMiddleware(RequestDelegate next)
{
private static readonly string ContentSecurityPolicy = string.Join(
';',
[
"default-src 'self'",
"script-src 'self' cdnjs.cloudflare.com",
"script-src-elem 'self' cdnjs.cloudflare.com",
"style-src 'self' cdnjs.cloudflare.com use.fontawesome.com",
"style-src-elem 'self' cdnjs.cloudflare.com",
"img-src 'self' data:",
"font-src 'self' cdnjs.cloudflare.com",
"connect-src 'self'",
"media-src 'none'",
"object-src 'none'",
"child-src 'none'",
"frame-ancestors 'none'",
"form-action 'self' appleid.apple.com",
"block-all-mixed-content",
"base-uri 'self'",
"manifest-src 'self'",
"upgrade-insecure-requests",
]);
"default-src 'self'",
"script-src 'self' cdnjs.cloudflare.com",
"script-src-elem 'self' cdnjs.cloudflare.com",
"style-src 'self' cdnjs.cloudflare.com use.fontawesome.com",
"style-src-elem 'self' cdnjs.cloudflare.com",
"img-src 'self' data:",
"font-src 'self' cdnjs.cloudflare.com",
"connect-src 'self'",
"media-src 'none'",
"object-src 'none'",
"child-src 'none'",
"frame-ancestors 'none'",
"form-action 'self' appleid.apple.com",
"block-all-mixed-content",
"base-uri 'self'",
"manifest-src 'self'",
"upgrade-insecure-requests");

public Task Invoke(HttpContext context)
{
Expand Down
4 changes: 2 additions & 2 deletions src/SignInWithApple/SignInWithApple.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
<VersionPrefix>4.0.0</VersionPrefix>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="AspNet.Security.OAuth.Apple" Version="9.0.0-preview.3.24211.70" />
<PackageReference Include="AspNet.Security.OAuth.Apple" Version="9.0.0-preview.4.24271.72" />
<PackageReference Include="Azure.Extensions.AspNetCore.Configuration.Secrets" Version="1.3.1" />
<PackageReference Include="Azure.Identity" Version="1.11.3" />
<PackageReference Include="Microsoft.AspNetCore.AzureAppServices.HostingStartup" Version="9.0.0-preview.3.24172.13" />
<PackageReference Include="Microsoft.AspNetCore.AzureAppServices.HostingStartup" Version="9.0.0-preview.4.24267.6" />
<PackageReference Include="Microsoft.IdentityModel.Protocols.OpenIdConnect" Version="7.6.0" />
</ItemGroup>
<ItemGroup>
Expand Down

0 comments on commit 2503148

Please sign in to comment.