Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 9 additions & 14 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ body:
validations:
required: true

- type: textarea
id: description
attributes:
label: Description of the problem
description: |
Describe as exactly as possible what is not working.
validations:
required: true

- type: textarea
id: steps-to-reproduce
attributes:
Expand All @@ -47,20 +56,6 @@ body:
validations:
required: true

- type: textarea
id: expected-behavior
attributes:
label: Expected behavior
description: |
Tell us what you expect to happen.

- type: textarea
id: actual-behavior
attributes:
label: Actual behavior
description: |
Tell us what happens with the steps given above.

- type: textarea
id: additional-information
attributes:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/image-vuln-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ jobs:
- uses: actions/checkout@v4

- name: Scan - Full
uses: aquasecurity/trivy-action@0.30.0
uses: aquasecurity/trivy-action@0.31.0
with:
image-ref: ${{ env.TRIVYY_IMAGE_REF }}

- name: Scan - Relevant
id: scan_relevant
uses: aquasecurity/trivy-action@0.30.0
uses: aquasecurity/trivy-action@0.31.0
with:
image-ref: ${{ env.TRIVYY_IMAGE_REF }}
exit-code: 1
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.0.10
* Backported some cleanup commits from upstream
* Updated dependencies

# 1.0.9
* Updated dependencies

Expand Down
12 changes: 6 additions & 6 deletions src/Helpers/AspNetServicesHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ namespace OpenIdConnectServer.Helpers
{
public class AspNetServicesOptions
{
public AspNetCorsOptions Cors { get; set; }
public AspNetCorsOptions? Cors { get; set; }

public IDictionary<string, AuthenticationOptions> Authentication { get; set; }
public SessionOptions Session { get; set; }
public IDictionary<string, AuthenticationOptions>? Authentication { get; set; }
public SessionOptions? Session { get; set; }

public ForwardedHeadersOptions ForwardedHeadersOptions { get; set; }
public ForwardedHeadersOptions? ForwardedHeadersOptions { get; set; }

public string BasePath { get; set; }
public string? BasePath { get; set; }
}

public class AuthenticationOptions
{
public CookieAuthenticationOptions CookieAuthenticationOptions { get; set; }
public CookieAuthenticationOptions? CookieAuthenticationOptions { get; set; }
}

public static class AspNetServicesHelper
Expand Down
6 changes: 3 additions & 3 deletions src/OpenIdConnectServerMock.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Duende.IdentityServer" Version="7.2.3" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="8.0.16" />
<PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" Version="8.0.16" />
<PackageReference Include="Duende.IdentityServer" Version="7.2.4" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="8.0.17" />
<PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" Version="8.0.17" />
<PackageReference Include="Serilog.AspNetCore" Version="8.0.3" />
<PackageReference Include="YamlDotNet" Version="16.3.0" />
</ItemGroup>
Expand Down
18 changes: 2 additions & 16 deletions src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@

var app = builder.Build();

app.UsePathBase(Config.GetAspNetServicesOptions().BasePath);

var aspNetServicesOptions = Config.GetAspNetServicesOptions();
AspNetServicesHelper.ConfigureAspNetServices(builder.Services, aspNetServicesOptions);
Expand All @@ -65,16 +66,6 @@

app.UseIdentityServer();

var basePath = Config.GetAspNetServicesOptions().BasePath;
if (!string.IsNullOrEmpty(basePath))
{
app.UseWhen(ctx => ctx.Request.Path.StartsWithSegments(basePath), appBuilder =>
{
appBuilder.UseMiddleware<BasePathMiddleware>();
appBuilder.UseMiddleware<IdentityServerMiddleware>();
});
}

app.UseHttpsRedirection();

var manifestEmbeddedProvider = new ManifestEmbeddedFileProvider(typeof(Program).Assembly, "wwwroot");
Expand All @@ -84,13 +75,8 @@
});

app.UseRouting();

app.UseAuthorization();
app.UseEndpoints(endpoints =>
{
endpoints.MapDefaultControllerRoute();
});

app.MapDefaultControllerRoute();
app.MapRazorPages();

app.Run();