Skip to content

Commit d85aaa5

Browse files
cleanup
1 parent cb31f00 commit d85aaa5

File tree

20 files changed

+71
-35
lines changed

20 files changed

+71
-35
lines changed

access-token-management/src/AccessTokenManagement.OpenIdConnect/Internal/AuthorizationServerDPoPHandler.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,11 @@ private async Task RefreshClientAssertionAsync(HttpRequestMessage request)
182182
pairs.Add(new KeyValuePair<string, string>(key, assertion.Type));
183183
break;
184184
default:
185-
{
186-
pairs.AddRange(kvp.Value.Select(val => new KeyValuePair<string, string>(key, val ?? string.Empty)));
185+
{
186+
pairs.AddRange(kvp.Value.Select(val => new KeyValuePair<string, string>(key, val ?? string.Empty)));
187187

188-
break;
189-
}
188+
break;
189+
}
190190
}
191191
}
192192

access-token-management/test/AccessTokenManagement.Tests/DPoPWithClientAssertionsTests.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,8 @@ public sealed class DPoPWithClientAssertionsTests : IntegrationTestBase
1616

1717
public DPoPWithClientAssertionsTests(ITestOutputHelper output)
1818
: base(output, "dpop-assertion",
19-
configureUserTokenManagementOptions: opt => { opt.DPoPJsonWebKey = DPoPProofKey.Parse(DPoPPrivateJwk); })
20-
{
21-
AppHost.ClientAssertionSigningCredentials =
19+
configureUserTokenManagementOptions: opt => { opt.DPoPJsonWebKey = DPoPProofKey.Parse(DPoPPrivateJwk); }) => AppHost.ClientAssertionSigningCredentials =
2220
new SigningCredentials(new JsonWebKey(ClientAssertionPrivateJwk), "RS256");
23-
}
2421

2522
[Fact]
2623
public async Task LoginWithDPoPAndClientAssertionsShouldSucceed()

access-token-management/test/AccessTokenManagement.Tests/Framework/IntegrationTestBase.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
using Duende.IdentityModel;
77
using Duende.IdentityServer;
88
using Duende.IdentityServer.Models;
9-
using Microsoft.Extensions.DependencyInjection;
10-
using Microsoft.IdentityModel.Tokens;
119
using JsonWebKey = Microsoft.IdentityModel.Tokens.JsonWebKey;
1210

1311
namespace Duende.AccessTokenManagement.Framework;
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
using Microsoft.AspNetCore.Mvc;
1+
// Copyright (c) Duende Software. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
3+
24
using Microsoft.AspNetCore.Mvc.RazorPages;
35

4-
namespace RazorSlices.Samples.PagesAndSlices.Pages
6+
namespace RazorSlices.Samples.PagesAndSlices.Pages;
7+
8+
public class IndexModel : PageModel
59
{
6-
public class IndexModel : PageModel
10+
public void OnGet()
711
{
8-
public void OnGet()
9-
{
10-
}
1112
}
1213
}

razor-slices/samples/PagesAndSlices/Program.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Duende Software. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
3+
14
using RazorSlices.Samples.PagesAndSlices.Slices;
25

36
var builder = WebApplication.CreateBuilder(args);

razor-slices/samples/RazorClassLibrary/MarkerClass.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Duende Software. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
3+
14
namespace RazorSlices.Samples.RazorClassLibrary;
25

36
internal class MarkerClass
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
// Copyright (c) Duende Software. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
3+
14
using Duende.RazorSlices;
25

36
namespace RazorSlices.Samples.RazorClassLibrary.Slices;
47

58
public partial class FromLibrary
69
{
7-
public static async Task<string> ExampleCustomRenderAsync()
8-
{
9-
return await Create().RenderAsync();
10-
}
10+
public static async Task<string> ExampleCustomRenderAsync() => await Create().RenderAsync();
1111
}

razor-slices/samples/WebApp/AppJsonContext.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Duende Software. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
3+
14
using System.Text.Json.Serialization;
25

36
namespace RazorSlices.Samples.WebApp;
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
// Copyright (c) Duende Software. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
3+
14
namespace RazorSlices.Samples.WebApp;
25

36
public struct HtmlContentParams
47
{
58
public bool Encode;
69

7-
public HtmlContentParams(bool? encode)
8-
{
9-
Encode = encode ?? false;
10-
}
10+
public HtmlContentParams(bool? encode) => Encode = encode ?? false;
1111
}

razor-slices/samples/WebApp/LoremParams.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
// Copyright (c) Duende Software. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
3+
14
namespace RazorSlices.Samples.WebApp;
5+
26
public struct LoremParams
37
{
48
public int ParagraphCount;

0 commit comments

Comments
 (0)