diff --git a/aspnetcore-authentication-jwtbearer/src/AspNetCore.Authentication.JwtBearer/DPoP/DPoPProofValidator.cs b/aspnetcore-authentication-jwtbearer/src/AspNetCore.Authentication.JwtBearer/DPoP/DPoPProofValidator.cs
index 65e6485e2..d00a03f73 100644
--- a/aspnetcore-authentication-jwtbearer/src/AspNetCore.Authentication.JwtBearer/DPoP/DPoPProofValidator.cs
+++ b/aspnetcore-authentication-jwtbearer/src/AspNetCore.Authentication.JwtBearer/DPoP/DPoPProofValidator.cs
@@ -70,7 +70,7 @@ internal class DPoPProofValidator : IDPoPProofValidator
///
/// Validates the DPoP proof.
///
- public async Task Validate(DPoPProofValidationContext context, CT ct = default)
+ public async Task Validate(DPoPProofValidationContext context, Ct ct = default)
{
using var activity = Tracing.ActivitySource.StartActivity("DPoPProofValidator.Validate");
@@ -368,7 +368,7 @@ internal class DPoPProofValidator : IDPoPProofValidator
internal async Task ValidateReplay(
DPoPProofValidationContext context,
DPoPProofValidationResult result,
- CT ct = default)
+ Ct ct = default)
{
var dPoPOptions = OptionsMonitor.Get(context.Scheme);
diff --git a/aspnetcore-authentication-jwtbearer/src/AspNetCore.Authentication.JwtBearer/DPoP/IDPoPProofValidator.cs b/aspnetcore-authentication-jwtbearer/src/AspNetCore.Authentication.JwtBearer/DPoP/IDPoPProofValidator.cs
index a49515050..9520221f5 100644
--- a/aspnetcore-authentication-jwtbearer/src/AspNetCore.Authentication.JwtBearer/DPoP/IDPoPProofValidator.cs
+++ b/aspnetcore-authentication-jwtbearer/src/AspNetCore.Authentication.JwtBearer/DPoP/IDPoPProofValidator.cs
@@ -11,5 +11,5 @@ public interface IDPoPProofValidator
///
/// Validates the DPoP proof.
///
- Task Validate(DPoPProofValidationContext context, CT ct = default);
+ Task Validate(DPoPProofValidationContext context, Ct ct = default);
}
diff --git a/aspnetcore-authentication-jwtbearer/src/AspNetCore.Authentication.JwtBearer/DPoP/IReplayCache.cs b/aspnetcore-authentication-jwtbearer/src/AspNetCore.Authentication.JwtBearer/DPoP/IReplayCache.cs
index f8c076fd5..b774ca060 100644
--- a/aspnetcore-authentication-jwtbearer/src/AspNetCore.Authentication.JwtBearer/DPoP/IReplayCache.cs
+++ b/aspnetcore-authentication-jwtbearer/src/AspNetCore.Authentication.JwtBearer/DPoP/IReplayCache.cs
@@ -11,11 +11,11 @@ public interface IReplayCache
///
/// Adds a hashed jti to the cache.
///
- Task Add(string jtiHash, TimeSpan expiration, CT ct = default);
+ Task Add(string jtiHash, TimeSpan expiration, Ct ct = default);
///
/// Checks if a cached jti hash exists in the hash.
///
- Task Exists(string jtiHash, CT ct = default);
+ Task Exists(string jtiHash, Ct ct = default);
}
diff --git a/aspnetcore-authentication-jwtbearer/src/AspNetCore.Authentication.JwtBearer/DPoP/ReplayCache.cs b/aspnetcore-authentication-jwtbearer/src/AspNetCore.Authentication.JwtBearer/DPoP/ReplayCache.cs
index 65690f9f5..6d1ee8bcd 100644
--- a/aspnetcore-authentication-jwtbearer/src/AspNetCore.Authentication.JwtBearer/DPoP/ReplayCache.cs
+++ b/aspnetcore-authentication-jwtbearer/src/AspNetCore.Authentication.JwtBearer/DPoP/ReplayCache.cs
@@ -24,7 +24,7 @@ internal class ReplayCache(DPoPHybridCacheProvider cacheProvider) : IReplayCache
}
}
- public async Task Add(string handle, TimeSpan expiration, CT ct)
+ public async Task Add(string handle, TimeSpan expiration, Ct ct)
{
using var activity = Tracing.ActivitySource.StartActivity("ReplayCache.Add");
@@ -43,7 +43,7 @@ internal class ReplayCache(DPoPHybridCacheProvider cacheProvider) : IReplayCache
| HybridCacheEntryFlags.DisableUnderlyingData
};
- public async Task Exists(string handle, CT ct)
+ public async Task Exists(string handle, Ct ct)
{
using var activity = Tracing.ActivitySource.StartActivity("ReplayCache.Exists");
diff --git a/aspnetcore-authentication-jwtbearer/test/AspNetCore.Authentication.JwtBearer.Tests/TestFramework/TestBrowserClient.cs b/aspnetcore-authentication-jwtbearer/test/AspNetCore.Authentication.JwtBearer.Tests/TestFramework/TestBrowserClient.cs
index 8c2c3019c..b4a5b65c2 100644
--- a/aspnetcore-authentication-jwtbearer/test/AspNetCore.Authentication.JwtBearer.Tests/TestFramework/TestBrowserClient.cs
+++ b/aspnetcore-authentication-jwtbearer/test/AspNetCore.Authentication.JwtBearer.Tests/TestFramework/TestBrowserClient.cs
@@ -15,7 +15,7 @@ public class TestBrowserClient : HttpClient
public HttpResponseMessage LastResponse { get; private set; } = default!;
protected override async Task SendAsync(HttpRequestMessage request,
- CT ct)
+ Ct ct)
{
CurrentUri = request.RequestUri!;
var cookieHeader = CookieContainer.GetCookieHeader(request.RequestUri!);
diff --git a/aspnetcore-authentication-jwtbearer/test/AspNetCore.Authentication.JwtBearer.Tests/TestFramework/TestHybridCache.cs b/aspnetcore-authentication-jwtbearer/test/AspNetCore.Authentication.JwtBearer.Tests/TestFramework/TestHybridCache.cs
index 4da5065c3..279a85dac 100644
--- a/aspnetcore-authentication-jwtbearer/test/AspNetCore.Authentication.JwtBearer.Tests/TestFramework/TestHybridCache.cs
+++ b/aspnetcore-authentication-jwtbearer/test/AspNetCore.Authentication.JwtBearer.Tests/TestFramework/TestHybridCache.cs
@@ -11,8 +11,8 @@ internal class TestHybridCache : HybridCache
private readonly List<(string key, object value, HybridCacheEntryOptions? options)> _setAsyncCalls = new();
private readonly List<(string key, HybridCacheEntryOptions? options)> _getOrCreateAsyncCalls = new();
- public override async ValueTask GetOrCreateAsync(string key, TState state, Func> factory, HybridCacheEntryOptions? options = null,
- IEnumerable? tags = null, CT ct = new())
+ public override async ValueTask GetOrCreateAsync(string key, TState state, Func> factory, HybridCacheEntryOptions? options = null,
+ IEnumerable? tags = null, Ct ct = new())
{
_getOrCreateAsyncCalls.Add((key, options));
@@ -25,16 +25,16 @@ internal class TestHybridCache : HybridCache
}
public override ValueTask SetAsync(string key, T value, HybridCacheEntryOptions? options = null, IEnumerable? tags = null,
- CT ct = new())
+ Ct ct = new())
{
_setAsyncCalls.Add((key, value!, options));
_cache[key] = value!;
return ValueTask.CompletedTask;
}
- public override ValueTask RemoveAsync(string key, CT ct = new()) => throw new NotImplementedException();
+ public override ValueTask RemoveAsync(string key, Ct ct = new()) => throw new NotImplementedException();
- public override ValueTask RemoveByTagAsync(string tag, CT ct = new()) => throw new NotImplementedException();
+ public override ValueTask RemoveByTagAsync(string tag, Ct ct = new()) => throw new NotImplementedException();
public IReadOnlyList<(string key, object value, HybridCacheEntryOptions? options)> SetAsyncCalls => _setAsyncCalls;
public IReadOnlyList<(string key, HybridCacheEntryOptions? options)> GetOrCreateAsyncCalls => _getOrCreateAsyncCalls;
diff --git a/aspnetcore-authentication-jwtbearer/test/AspNetCore.Authentication.JwtBearer.Tests/TestFramework/TestReplayCache.cs b/aspnetcore-authentication-jwtbearer/test/AspNetCore.Authentication.JwtBearer.Tests/TestFramework/TestReplayCache.cs
index 6e0c51784..79a7a0cfd 100644
--- a/aspnetcore-authentication-jwtbearer/test/AspNetCore.Authentication.JwtBearer.Tests/TestFramework/TestReplayCache.cs
+++ b/aspnetcore-authentication-jwtbearer/test/AspNetCore.Authentication.JwtBearer.Tests/TestFramework/TestReplayCache.cs
@@ -14,14 +14,14 @@ public class TestReplayCache : IReplayCache
// Configuration for test behavior
public Func? ExistsFunc { get; set; }
- public Task Add(string jtiHash, TimeSpan expiration, CT ct = default)
+ public Task Add(string jtiHash, TimeSpan expiration, Ct ct = default)
{
_addCalls.Add((jtiHash, expiration));
_cache[jtiHash] = (expiration, DateTime.UtcNow);
return Task.CompletedTask;
}
- public Task Exists(string jtiHash, CT ct = default)
+ public Task Exists(string jtiHash, Ct ct = default)
{
_existsCalls.Add(jtiHash);
diff --git a/bff/hosts/Hosts.Bff.InMemory/ImpersonationAccessTokenRetriever.cs b/bff/hosts/Hosts.Bff.InMemory/ImpersonationAccessTokenRetriever.cs
index f1f18da42..bac852ad3 100644
--- a/bff/hosts/Hosts.Bff.InMemory/ImpersonationAccessTokenRetriever.cs
+++ b/bff/hosts/Hosts.Bff.InMemory/ImpersonationAccessTokenRetriever.cs
@@ -9,7 +9,7 @@ namespace Bff;
public class ImpersonationAccessTokenRetriever(IAccessTokenRetriever inner) : IAccessTokenRetriever
{
- public async Task GetAccessTokenAsync(AccessTokenRetrievalContext context, CT ct = default)
+ public async Task GetAccessTokenAsync(AccessTokenRetrievalContext context, Ct ct = default)
{
var result = await inner.GetAccessTokenAsync(context, ct);
diff --git a/bff/hosts/Hosts.Bff.MultiFrontend/ImpersonationAccessTokenRetriever.cs b/bff/hosts/Hosts.Bff.MultiFrontend/ImpersonationAccessTokenRetriever.cs
index f1f18da42..bac852ad3 100644
--- a/bff/hosts/Hosts.Bff.MultiFrontend/ImpersonationAccessTokenRetriever.cs
+++ b/bff/hosts/Hosts.Bff.MultiFrontend/ImpersonationAccessTokenRetriever.cs
@@ -9,7 +9,7 @@ namespace Bff;
public class ImpersonationAccessTokenRetriever(IAccessTokenRetriever inner) : IAccessTokenRetriever
{
- public async Task GetAccessTokenAsync(AccessTokenRetrievalContext context, CT ct = default)
+ public async Task GetAccessTokenAsync(AccessTokenRetrievalContext context, Ct ct = default)
{
var result = await inner.GetAccessTokenAsync(context, ct);
diff --git a/bff/hosts/Hosts.Bff.MultiFrontend/Program.cs b/bff/hosts/Hosts.Bff.MultiFrontend/Program.cs
index 3296ec36c..7aad37e6e 100644
--- a/bff/hosts/Hosts.Bff.MultiFrontend/Program.cs
+++ b/bff/hosts/Hosts.Bff.MultiFrontend/Program.cs
@@ -166,7 +166,7 @@ app.MapGet("/local/self-contained", (CurrentFrontendAccessor currentFrontendAcce
return data;
});
-app.MapGet("/local/invokes-external-api", async (CurrentFrontendAccessor currentFrontendAccessor, IHttpClientFactory httpClientFactory, HttpContext c, CT ct) =>
+app.MapGet("/local/invokes-external-api", async (CurrentFrontendAccessor currentFrontendAccessor, IHttpClientFactory httpClientFactory, HttpContext c, Ct ct) =>
{
var httpClient = httpClientFactory.CreateClient("api");
var apiResult = await httpClient.GetAsync("/user-token");
@@ -235,7 +235,7 @@ RouteConfig[] BuildYarpRoutes()
public class FrontendAwareIndexHtmlTransformer : IIndexHtmlTransformer
{
- public Task Transform(string indexHtml, BffFrontend frontend, CT ct = default)
+ public Task Transform(string indexHtml, BffFrontend frontend, Ct ct = default)
{
indexHtml = indexHtml.Replace("[FrontendName]", frontend.Name);
indexHtml = indexHtml.Replace("[Path]", frontend.MatchingCriteria.MatchingPath + "/"); // Note, the path must end with a slash
diff --git a/bff/hosts/Hosts.Bff.Performance/Services/ApiHostedService.cs b/bff/hosts/Hosts.Bff.Performance/Services/ApiHostedService.cs
index 7ee61e2b1..d3c31553c 100644
--- a/bff/hosts/Hosts.Bff.Performance/Services/ApiHostedService.cs
+++ b/bff/hosts/Hosts.Bff.Performance/Services/ApiHostedService.cs
@@ -9,7 +9,7 @@ public class ApiHostedService(IOptions apiSettings) : BackgroundSer
{
public ApiSettings Settings { get; } = apiSettings.Value;
- protected override Task ExecuteAsync(CT stoppingToken)
+ protected override Task ExecuteAsync(Ct stoppingToken)
{
var builder = WebApplication.CreateBuilder();
builder.AddServiceDefaults();
diff --git a/bff/hosts/Hosts.Bff.Performance/Services/BffService.cs b/bff/hosts/Hosts.Bff.Performance/Services/BffService.cs
index 6fcd0ed1c..730540d7c 100644
--- a/bff/hosts/Hosts.Bff.Performance/Services/BffService.cs
+++ b/bff/hosts/Hosts.Bff.Performance/Services/BffService.cs
@@ -15,7 +15,7 @@ public abstract class BffService(string[] urlConfigKeys, IConfiguration config,
public IConfiguration Config { get; } = config;
public BffSettings Settings { get; } = bffSettings.Value;
- protected override async Task ExecuteAsync(CT stoppingToken)
+ protected override async Task ExecuteAsync(Ct stoppingToken)
{
var urls = urlConfigKeys
.Select(x => Config[x])
diff --git a/bff/hosts/Hosts.Bff.Performance/Services/IdentityServerService.cs b/bff/hosts/Hosts.Bff.Performance/Services/IdentityServerService.cs
index 4d2534b2d..96be741ad 100644
--- a/bff/hosts/Hosts.Bff.Performance/Services/IdentityServerService.cs
+++ b/bff/hosts/Hosts.Bff.Performance/Services/IdentityServerService.cs
@@ -17,7 +17,7 @@ public class IdentityServerService(IOptions settings, IC
{
public IdentityServerSettings Settings { get; } = settings.Value;
- protected override Task ExecuteAsync(CT stoppingToken)
+ protected override Task ExecuteAsync(Ct stoppingToken)
{
var builder = WebApplication.CreateBuilder();
builder.AddServiceDefaults();
diff --git a/bff/hosts/Hosts.ServiceDefaults/Extensions.cs b/bff/hosts/Hosts.ServiceDefaults/Extensions.cs
index 4ca3dcf60..482baecd2 100644
--- a/bff/hosts/Hosts.ServiceDefaults/Extensions.cs
+++ b/bff/hosts/Hosts.ServiceDefaults/Extensions.cs
@@ -85,7 +85,7 @@ public static class Extensions
}
// Uncomment the following lines to enable the Azure Monitor exporter (requires the Azure.Monitor.OpenTelemetry.AspNetCore package)
- //if (!string.IsNullOrEmpty(builder.Configuration["APPLICATIONINSIGHTS_CONNECTION_STRING"]))
+ //if (!string.IsNullOrEmpty(builder.Configuration["APPLICATIONINSIGHTS_CONNECtION_STRING"]))
//{
// builder.Services.AddOpenTelemetry()
// .UseAzureMonitor();
diff --git a/bff/performance/Bff.Benchmarks/Hosts/CookieHandler.cs b/bff/performance/Bff.Benchmarks/Hosts/CookieHandler.cs
index 00bf0059b..1f696bf13 100644
--- a/bff/performance/Bff.Benchmarks/Hosts/CookieHandler.cs
+++ b/bff/performance/Bff.Benchmarks/Hosts/CookieHandler.cs
@@ -9,7 +9,7 @@ namespace Bff.Benchmarks.Hosts;
internal class CookieHandler(HttpMessageHandler innerHandler, CookieContainer cookieContainer)
: DelegatingHandler(innerHandler)
{
- protected override async Task SendAsync(HttpRequestMessage request, CT ct)
+ protected override async Task SendAsync(HttpRequestMessage request, Ct ct)
{
var requestUri = request.RequestUri;
var header = cookieContainer.GetCookieHeader(requestUri!);
diff --git a/bff/performance/Bff.Benchmarks/Hosts/RedirectHandler.cs b/bff/performance/Bff.Benchmarks/Hosts/RedirectHandler.cs
index d410a2d5b..3488b4eb4 100644
--- a/bff/performance/Bff.Benchmarks/Hosts/RedirectHandler.cs
+++ b/bff/performance/Bff.Benchmarks/Hosts/RedirectHandler.cs
@@ -12,7 +12,7 @@ internal class RedirectHandler() : DelegatingHandler
public bool AutoFollowRedirects { get; set; } = true;
protected override async Task SendAsync(HttpRequestMessage request,
- CT ct)
+ Ct ct)
{
var originalUri = request.RequestUri;
diff --git a/bff/performance/Bff.Benchmarks/Hosts/RoutingMessageHandler.cs b/bff/performance/Bff.Benchmarks/Hosts/RoutingMessageHandler.cs
index 8458d3628..c0222cf7c 100644
--- a/bff/performance/Bff.Benchmarks/Hosts/RoutingMessageHandler.cs
+++ b/bff/performance/Bff.Benchmarks/Hosts/RoutingMessageHandler.cs
@@ -27,7 +27,7 @@ internal class RoutingMessageHandler : HttpMessageHandler
protected override Task SendAsync(
HttpRequestMessage request,
- CT ct)
+ Ct ct)
{
var host = $"{request.RequestUri?.Host}:{request.RequestUri?.Port}";
@@ -46,7 +46,7 @@ internal class RoutingMessageHandler : HttpMessageHandler
{
internal Task SuppressedSend(
HttpRequestMessage request,
- CT ct)
+ Ct ct)
{
Task t;
if (ExecutionContext.IsFlowSuppressed())
diff --git a/bff/performance/Bff.Benchmarks/Hosts/SimulatedInternet.cs b/bff/performance/Bff.Benchmarks/Hosts/SimulatedInternet.cs
index 6e4cc2ee8..1cfaa63a0 100644
--- a/bff/performance/Bff.Benchmarks/Hosts/SimulatedInternet.cs
+++ b/bff/performance/Bff.Benchmarks/Hosts/SimulatedInternet.cs
@@ -64,7 +64,7 @@ internal class SimulatedInternet : DelegatingHandler
protected override async Task SendAsync(
HttpRequestMessage request,
- CT ct)
+ Ct ct)
{
var httpResponseMessage = await base.SendAsync(request, ct);
return httpResponseMessage;
diff --git a/bff/performance/Bff.Performance/TestInfra/AutoFollowRedirectHandler.cs b/bff/performance/Bff.Performance/TestInfra/AutoFollowRedirectHandler.cs
index d33c82d40..56088f197 100644
--- a/bff/performance/Bff.Performance/TestInfra/AutoFollowRedirectHandler.cs
+++ b/bff/performance/Bff.Performance/TestInfra/AutoFollowRedirectHandler.cs
@@ -8,7 +8,7 @@ namespace Bff.Performance.TestInfra;
public class AutoFollowRedirectHandler(Action writeOutput) : DelegatingHandler
{
protected override async Task SendAsync(HttpRequestMessage request,
- CT ct)
+ Ct ct)
{
var previousUri = request.RequestUri;
for (var i = 0; i < 20; i++)
diff --git a/bff/performance/Bff.Performance/TestInfra/CloningHttpMessageHandler.cs b/bff/performance/Bff.Performance/TestInfra/CloningHttpMessageHandler.cs
index bdfb56601..91998edba 100644
--- a/bff/performance/Bff.Performance/TestInfra/CloningHttpMessageHandler.cs
+++ b/bff/performance/Bff.Performance/TestInfra/CloningHttpMessageHandler.cs
@@ -9,7 +9,7 @@ public class CloningHttpMessageHandler(HttpClient innerHttpClient) : HttpMessage
innerHttpClient ?? throw new ArgumentNullException(nameof(innerHttpClient));
protected override async Task SendAsync(HttpRequestMessage request,
- CT ct)
+ Ct ct)
{
// Clone the incoming request
var clonedRequest = await CloneHttpRequestMessageAsync(request);
diff --git a/bff/performance/Bff.Performance/TestInfra/RequestLoggingHandler.cs b/bff/performance/Bff.Performance/TestInfra/RequestLoggingHandler.cs
index fc3abae9e..81d9102ae 100644
--- a/bff/performance/Bff.Performance/TestInfra/RequestLoggingHandler.cs
+++ b/bff/performance/Bff.Performance/TestInfra/RequestLoggingHandler.cs
@@ -12,7 +12,7 @@ public class RequestLoggingHandler(
: DelegatingHandler
{
protected override async Task SendAsync(HttpRequestMessage request,
- CT ct)
+ Ct ct)
{
if (!shouldLog(request))
{
diff --git a/bff/src/Bff.Blazor.Client/Internals/AntiforgeryHandler.cs b/bff/src/Bff.Blazor.Client/Internals/AntiforgeryHandler.cs
index 6d6d05b9d..98ef58f0c 100644
--- a/bff/src/Bff.Blazor.Client/Internals/AntiforgeryHandler.cs
+++ b/bff/src/Bff.Blazor.Client/Internals/AntiforgeryHandler.cs
@@ -6,7 +6,7 @@ namespace Duende.Bff.Blazor.Client.Internals;
internal class AntiForgeryHandler : DelegatingHandler
{
protected override Task SendAsync(HttpRequestMessage request,
- CT ct)
+ Ct ct)
{
request.Headers.Add("X-CSRF", "1");
return base.SendAsync(request, ct);
diff --git a/bff/src/Bff.Blazor/BffServerAuthenticationStateProvider.cs b/bff/src/Bff.Blazor/BffServerAuthenticationStateProvider.cs
index a3084be75..c5a22d567 100644
--- a/bff/src/Bff.Blazor/BffServerAuthenticationStateProvider.cs
+++ b/bff/src/Bff.Blazor/BffServerAuthenticationStateProvider.cs
@@ -126,7 +126,7 @@ internal sealed class BffServerAuthenticationStateProvider : RevalidatingServerA
/// The current authentication state.
/// A token that can be used to request cancellation of the asynchronous operation.
/// A boolean indicating whether the authentication state is valid.
- protected override async Task ValidateAuthenticationStateAsync(AuthenticationState authenticationState, CT ct)
+ protected override async Task ValidateAuthenticationStateAsync(AuthenticationState authenticationState, Ct ct)
{
using var scope = _serviceScopeFactory.CreateScope();
var sessionStore = scope.ServiceProvider.GetRequiredService();
diff --git a/bff/src/Bff.Blazor/ServerSideTokenStore.cs b/bff/src/Bff.Blazor/ServerSideTokenStore.cs
index 34cf00413..172331fbc 100644
--- a/bff/src/Bff.Blazor/ServerSideTokenStore.cs
+++ b/bff/src/Bff.Blazor/ServerSideTokenStore.cs
@@ -32,7 +32,7 @@ internal class ServerSideTokenStore(
?? throw new ArgumentException("AuthenticationStateProvider must implement IHostEnvironmentAuthenticationStateProvider");
public async Task> GetTokenAsync(ClaimsPrincipal user, UserTokenRequestParameters? parameters = null,
- CT ct = default)
+ Ct ct = default)
{
logger.RetrievingTokenForUser(LogLevel.Debug, user.Identity?.Name);
var session = await GetSession(user);
@@ -83,7 +83,7 @@ internal class ServerSideTokenStore(
}
public async Task StoreTokenAsync(ClaimsPrincipal user, UserToken token,
- UserTokenRequestParameters? parameters = null, CT ct = default)
+ UserTokenRequestParameters? parameters = null, Ct ct = default)
{
logger.StoringTokenForUser(LogLevel.Debug, user.Identity?.Name);
await UpdateTicket(user,
@@ -91,7 +91,7 @@ internal class ServerSideTokenStore(
}
- public async Task ClearTokenAsync(ClaimsPrincipal user, UserTokenRequestParameters? parameters = null, CT ct = default)
+ public async Task ClearTokenAsync(ClaimsPrincipal user, UserTokenRequestParameters? parameters = null, Ct ct = default)
{
logger.RemovingTokenForUser(LogLevel.Debug, user.Identity?.Name);
await UpdateTicket(user, ticket =>
diff --git a/bff/src/Bff.EntityFramework/ISessionDbContext.cs b/bff/src/Bff.EntityFramework/ISessionDbContext.cs
index 8adf7956d..75c552952 100644
--- a/bff/src/Bff.EntityFramework/ISessionDbContext.cs
+++ b/bff/src/Bff.EntityFramework/ISessionDbContext.cs
@@ -23,5 +23,5 @@ public interface ISessionDbContext
/// Saves the changes.
///
///
- Task SaveChangesAsync(CT ct = default);
+ Task SaveChangesAsync(Ct ct = default);
}
diff --git a/bff/src/Bff.EntityFramework/Internal/UserSessionStore.cs b/bff/src/Bff.EntityFramework/Internal/UserSessionStore.cs
index 5bdcda9ff..831e00983 100644
--- a/bff/src/Bff.EntityFramework/Internal/UserSessionStore.cs
+++ b/bff/src/Bff.EntityFramework/Internal/UserSessionStore.cs
@@ -18,7 +18,7 @@ internal sealed class UserSessionStore(
: IUserSessionStore, IUserSessionStoreCleanup
{
///
- public async Task CreateUserSessionAsync(UserSession session, CT ct)
+ public async Task CreateUserSessionAsync(UserSession session, Ct ct)
{
if (!session.PartitionKey.HasValue)
{
@@ -67,7 +67,7 @@ internal sealed class UserSessionStore(
}
///
- public async Task DeleteUserSessionAsync(UserSessionKey key, CT ct)
+ public async Task DeleteUserSessionAsync(UserSessionKey key, Ct ct)
{
var userKey = key.UserKey;
var partitionKey = key.PartitionKey;
@@ -104,7 +104,7 @@ internal sealed class UserSessionStore(
}
///
- public async Task DeleteUserSessionsAsync(PartitionKey partitionKey, UserSessionsFilter filter, CT ct)
+ public async Task DeleteUserSessionsAsync(PartitionKey partitionKey, UserSessionsFilter filter, Ct ct)
{
filter.Validate();
var query = sessionDbContext.UserSessions.Where(x => x.PartitionKey == partitionKey).AsQueryable();
@@ -152,7 +152,7 @@ internal sealed class UserSessionStore(
}
///
- public async Task GetUserSessionAsync(UserSessionKey key, CT ct)
+ public async Task GetUserSessionAsync(UserSessionKey key, Ct ct)
{
var userKey = key.UserKey;
var partitionKey = key.PartitionKey;
@@ -175,7 +175,7 @@ internal sealed class UserSessionStore(
}
///
- public async Task> GetUserSessionsAsync(PartitionKey partitionKey, UserSessionsFilter filter, CT ct)
+ public async Task> GetUserSessionsAsync(PartitionKey partitionKey, UserSessionsFilter filter, Ct ct)
{
filter.Validate();
var query = sessionDbContext.UserSessions.Where(x => x.PartitionKey == partitionKey).AsQueryable();
@@ -213,7 +213,7 @@ internal sealed class UserSessionStore(
}
///
- public async Task UpdateUserSessionAsync(UserSessionKey key, UserSessionUpdate session, CT ct)
+ public async Task UpdateUserSessionAsync(UserSessionKey key, UserSessionUpdate session, Ct ct)
{
var userKey = key.UserKey;
var partitionKey = key.PartitionKey;
@@ -235,7 +235,7 @@ internal sealed class UserSessionStore(
}
///
- public async Task DeleteExpiredSessionsAsync(CT ct = default)
+ public async Task DeleteExpiredSessionsAsync(Ct ct = default)
{
var removed = 0;
diff --git a/bff/src/Bff.Yarp/Internal/RemoteRouteHandler.cs b/bff/src/Bff.Yarp/Internal/RemoteRouteHandler.cs
index 492ccd4c1..d8f6ab937 100644
--- a/bff/src/Bff.Yarp/Internal/RemoteRouteHandler.cs
+++ b/bff/src/Bff.Yarp/Internal/RemoteRouteHandler.cs
@@ -68,7 +68,7 @@ internal class RemoteRouteHandler : IDisposable
public void ClearTransformerCacheFor(BffFrontend frontend) => _cache.TryRemove(frontend.Name, out _);
- public async Task HandleAsync(HttpContext context, CT ct)
+ public async Task HandleAsync(HttpContext context, Ct ct)
{
if (!_currentFrontendAccessor.TryGet(out var frontend))
{
diff --git a/bff/src/Bff/AccessTokenManagement/IAccessTokenRetriever.cs b/bff/src/Bff/AccessTokenManagement/IAccessTokenRetriever.cs
index 9127a0d56..f70128fea 100644
--- a/bff/src/Bff/AccessTokenManagement/IAccessTokenRetriever.cs
+++ b/bff/src/Bff/AccessTokenManagement/IAccessTokenRetriever.cs
@@ -15,5 +15,5 @@ public interface IAccessTokenRetriever
/// A task that contains the access token result, which is an
/// object model that can represent various types of tokens (bearer, dpop),
/// the absence of an optional token, or an error.
- public Task GetAccessTokenAsync(AccessTokenRetrievalContext context, CT ct = default);
+ public Task GetAccessTokenAsync(AccessTokenRetrievalContext context, Ct ct = default);
}
diff --git a/bff/src/Bff/Diagnostics/DiagnosticDataService.cs b/bff/src/Bff/Diagnostics/DiagnosticDataService.cs
index bb804ac37..e67237821 100644
--- a/bff/src/Bff/Diagnostics/DiagnosticDataService.cs
+++ b/bff/src/Bff/Diagnostics/DiagnosticDataService.cs
@@ -8,7 +8,7 @@ namespace Duende.Bff.Diagnostics;
internal class DiagnosticDataService(DateTime serverStartTime, IEnumerable entries)
{
- public async Task> GetJsonBytesAsync(CT ct = default)
+ public async Task> GetJsonBytesAsync(Ct ct = default)
{
var bufferWriter = new ArrayBufferWriter();
await using var writer = new Utf8JsonWriter(bufferWriter, new JsonWriterOptions { Indented = false });
diff --git a/bff/src/Bff/Diagnostics/DiagnosticHostedService.cs b/bff/src/Bff/Diagnostics/DiagnosticHostedService.cs
index f6fa0775d..d2be6eb35 100644
--- a/bff/src/Bff/Diagnostics/DiagnosticHostedService.cs
+++ b/bff/src/Bff/Diagnostics/DiagnosticHostedService.cs
@@ -14,7 +14,7 @@ internal class DiagnosticHostedService(
ILogger logger,
TimeProvider timeProvider) : BackgroundService
{
- protected override async Task ExecuteAsync(CT stoppingToken)
+ protected override async Task ExecuteAsync(Ct stoppingToken)
{
using var timer = new PeriodicTimer(options.Value.Diagnostics.LogFrequency, timeProvider);
try
@@ -40,7 +40,7 @@ internal class DiagnosticHostedService(
}
}
- public override async Task StopAsync(CT ct)
+ public override async Task StopAsync(Ct ct)
{
await diagnosticsSummary.PrintSummaryAsync(ct);
diff --git a/bff/src/Bff/Diagnostics/DiagnosticSummary.cs b/bff/src/Bff/Diagnostics/DiagnosticSummary.cs
index a93dce9bb..a320f0d56 100644
--- a/bff/src/Bff/Diagnostics/DiagnosticSummary.cs
+++ b/bff/src/Bff/Diagnostics/DiagnosticSummary.cs
@@ -15,7 +15,7 @@ internal class DiagnosticSummary(
{
private readonly ILogger _logger = loggerFactory.CreateLogger("Duende.BFF.Diagnostics.Summary");
- public async Task PrintSummaryAsync(CT ct = default)
+ public async Task PrintSummaryAsync(Ct ct = default)
{
var bffOptions = options.Value;
var jsonMemory = await diagnosticDataService.GetJsonBytesAsync(ct);
diff --git a/bff/src/Bff/DynamicFrontends/IIndexHtmlTransformer.cs b/bff/src/Bff/DynamicFrontends/IIndexHtmlTransformer.cs
index bae1cb126..67ab4fd12 100644
--- a/bff/src/Bff/DynamicFrontends/IIndexHtmlTransformer.cs
+++ b/bff/src/Bff/DynamicFrontends/IIndexHtmlTransformer.cs
@@ -10,5 +10,5 @@ namespace Duende.Bff.DynamicFrontends;
///
public interface IIndexHtmlTransformer
{
- Task Transform(string indexHtml, BffFrontend frontend, CT ct = default);
+ Task Transform(string indexHtml, BffFrontend frontend, Ct ct = default);
}
diff --git a/bff/src/Bff/DynamicFrontends/IStaticFilesClient.cs b/bff/src/Bff/DynamicFrontends/IStaticFilesClient.cs
index 3a4dedc36..d9b1bb102 100644
--- a/bff/src/Bff/DynamicFrontends/IStaticFilesClient.cs
+++ b/bff/src/Bff/DynamicFrontends/IStaticFilesClient.cs
@@ -20,7 +20,7 @@ public interface IStaticFilesClient
///
/// CancellationToken
/// Index HTML
- Task GetIndexHtmlAsync(CT ct = default);
+ Task GetIndexHtmlAsync(Ct ct = default);
///
/// This method proxies all static asset requests to the configured CDN URL for the current frontend.
@@ -34,5 +34,5 @@ public interface IStaticFilesClient
/// HttpContext
/// CancellationToken
///
- Task ProxyStaticAssetsAsync(HttpContext context, CT ct = default);
+ Task ProxyStaticAssetsAsync(HttpContext context, Ct ct = default);
}
diff --git a/bff/src/Bff/DynamicFrontends/Internal/BffCacheClearingHostedService.cs b/bff/src/Bff/DynamicFrontends/Internal/BffCacheClearingHostedService.cs
index a6e4d3cc1..bac8ecae1 100644
--- a/bff/src/Bff/DynamicFrontends/Internal/BffCacheClearingHostedService.cs
+++ b/bff/src/Bff/DynamicFrontends/Internal/BffCacheClearingHostedService.cs
@@ -30,7 +30,7 @@ internal class BffCacheClearingHostedService(
private ChannelWriter Writer => _channel.Writer;
private ChannelReader Reader => _channel.Reader;
- protected override async Task ExecuteAsync(CT ct)
+ protected override async Task ExecuteAsync(Ct ct)
{
// Subscribe to frontend changes and publish messages to the channel
frontendCollection.OnFrontendChanged += changedFrontend =>
@@ -55,7 +55,7 @@ internal class BffCacheClearingHostedService(
await ProcessFrontendChangesAsync(ct);
}
- private async Task ProcessFrontendChangesAsync(CT ct)
+ private async Task ProcessFrontendChangesAsync(Ct ct)
{
try
{
@@ -77,7 +77,7 @@ internal class BffCacheClearingHostedService(
}
}
- private async Task ProcessFrontendChangeAsync(BffFrontend changedFrontend, CT ct)
+ private async Task ProcessFrontendChangeAsync(BffFrontend changedFrontend, Ct ct)
{
try
{
diff --git a/bff/src/Bff/DynamicFrontends/Internal/StaticFilesHttpClient.cs b/bff/src/Bff/DynamicFrontends/Internal/StaticFilesHttpClient.cs
index 79f5b6c5f..0f27230c2 100644
--- a/bff/src/Bff/DynamicFrontends/Internal/StaticFilesHttpClient.cs
+++ b/bff/src/Bff/DynamicFrontends/Internal/StaticFilesHttpClient.cs
@@ -23,7 +23,7 @@ internal class StaticFilesHttpClient(
{
private readonly CancellationTokenSource _stopping = new();
- public async Task GetIndexHtmlAsync(CT ct = default)
+ public async Task GetIndexHtmlAsync(Ct ct = default)
{
var frontend = currentFrontendAccessor.Get();
@@ -67,7 +67,7 @@ internal class StaticFilesHttpClient(
}
}
- public async Task ProxyStaticAssetsAsync(HttpContext context, CT ct = default)
+ public async Task ProxyStaticAssetsAsync(HttpContext context, Ct ct = default)
{
var frontend = currentFrontendAccessor.Get();
diff --git a/bff/src/Bff/Endpoints/IBffEndpoint.cs b/bff/src/Bff/Endpoints/IBffEndpoint.cs
index 5a0cdf4b2..4b42bfaa8 100644
--- a/bff/src/Bff/Endpoints/IBffEndpoint.cs
+++ b/bff/src/Bff/Endpoints/IBffEndpoint.cs
@@ -14,5 +14,5 @@ public interface IBffEndpoint
/// Process a request
///
///
- Task ProcessRequestAsync(HttpContext context, CT ct = default);
+ Task ProcessRequestAsync(HttpContext context, Ct ct = default);
}
diff --git a/bff/src/Bff/Endpoints/IUserEndpointClaimsEnricher.cs b/bff/src/Bff/Endpoints/IUserEndpointClaimsEnricher.cs
index 8c5681980..7f81dc4e7 100644
--- a/bff/src/Bff/Endpoints/IUserEndpointClaimsEnricher.cs
+++ b/bff/src/Bff/Endpoints/IUserEndpointClaimsEnricher.cs
@@ -26,5 +26,5 @@ public interface IUserEndpointClaimsEnricher
/// The current set of claims to be returned.
/// Cancellation token
/// The updated list of claims.
- Task> EnrichClaimsAsync(AuthenticateResult authenticateResult, IReadOnlyList claims, CT ct = default);
+ Task> EnrichClaimsAsync(AuthenticateResult authenticateResult, IReadOnlyList claims, Ct ct = default);
}
diff --git a/bff/src/Bff/Endpoints/Internal/DefaultBackchannelLogoutEndpoint.cs b/bff/src/Bff/Endpoints/Internal/DefaultBackchannelLogoutEndpoint.cs
index 56447292b..f53a7441a 100644
--- a/bff/src/Bff/Endpoints/Internal/DefaultBackchannelLogoutEndpoint.cs
+++ b/bff/src/Bff/Endpoints/Internal/DefaultBackchannelLogoutEndpoint.cs
@@ -27,7 +27,7 @@ internal class DefaultBackchannelLogoutEndpoint(
ILogger logger) : IBackchannelLogoutEndpoint
{
///
- public async Task ProcessRequestAsync(HttpContext context, CT ct = default)
+ public async Task ProcessRequestAsync(HttpContext context, Ct ct = default)
{
logger.ProcessingBackChannelLogoutRequest(LogLevel.Debug);
@@ -167,7 +167,7 @@ internal class DefaultBackchannelLogoutEndpoint(
var config = options.Configuration;
if (config == null)
{
- config = await options.ConfigurationManager?.GetConfigurationAsync(CT.None)!;
+ config = await options.ConfigurationManager?.GetConfigurationAsync(Ct.None)!;
}
if (config == null)
diff --git a/bff/src/Bff/Endpoints/Internal/DefaultDiagnosticsEndpoint.cs b/bff/src/Bff/Endpoints/Internal/DefaultDiagnosticsEndpoint.cs
index 04c8e7402..513a78b07 100644
--- a/bff/src/Bff/Endpoints/Internal/DefaultDiagnosticsEndpoint.cs
+++ b/bff/src/Bff/Endpoints/Internal/DefaultDiagnosticsEndpoint.cs
@@ -24,7 +24,7 @@ internal class DefaultDiagnosticsEndpoint(IWebHostEnvironment environment, IOpti
};
///
- public async Task ProcessRequestAsync(HttpContext context, CT ct = default)
+ public async Task ProcessRequestAsync(HttpContext context, Ct ct = default)
{
if (options.Value.DiagnosticsEnvironments?.Contains(environment.EnvironmentName) is null or false)
{
diff --git a/bff/src/Bff/Endpoints/Internal/DefaultLoginEndpoint.cs b/bff/src/Bff/Endpoints/Internal/DefaultLoginEndpoint.cs
index 07b6794b5..3d5b5d5db 100644
--- a/bff/src/Bff/Endpoints/Internal/DefaultLoginEndpoint.cs
+++ b/bff/src/Bff/Endpoints/Internal/DefaultLoginEndpoint.cs
@@ -27,7 +27,7 @@ internal class DefaultLoginEndpoint(
: ILoginEndpoint
{
///
- public async Task ProcessRequestAsync(HttpContext context, CT ct = default)
+ public async Task ProcessRequestAsync(HttpContext context, Ct ct = default)
{
logger.ProcessingLoginRequest(LogLevel.Debug);
@@ -85,7 +85,7 @@ internal class DefaultLoginEndpoint(
await context.ChallengeAsync(props);
}
- private async Task?> GetPromptValuesAsync(CT ct = default)
+ private async Task?> GetPromptValuesAsync(Ct ct = default)
{
Scheme scheme;
diff --git a/bff/src/Bff/Endpoints/Internal/DefaultLogoutEndpoint.cs b/bff/src/Bff/Endpoints/Internal/DefaultLogoutEndpoint.cs
index 05a2496af..2991909a4 100644
--- a/bff/src/Bff/Endpoints/Internal/DefaultLogoutEndpoint.cs
+++ b/bff/src/Bff/Endpoints/Internal/DefaultLogoutEndpoint.cs
@@ -22,7 +22,7 @@ internal class DefaultLogoutEndpoint(IOptions options,
: ILogoutEndpoint
{
///
- public async Task ProcessRequestAsync(HttpContext context, CT ct = default)
+ public async Task ProcessRequestAsync(HttpContext context, Ct ct = default)
{
logger.ProcessingLogoutRequest(LogLevel.Debug);
diff --git a/bff/src/Bff/Endpoints/Internal/DefaultSilentLoginCallbackEndpoint.cs b/bff/src/Bff/Endpoints/Internal/DefaultSilentLoginCallbackEndpoint.cs
index c9cee60d6..9779d72ff 100644
--- a/bff/src/Bff/Endpoints/Internal/DefaultSilentLoginCallbackEndpoint.cs
+++ b/bff/src/Bff/Endpoints/Internal/DefaultSilentLoginCallbackEndpoint.cs
@@ -21,7 +21,7 @@ internal class DefaultSilentLoginCallbackEndpoint(
{
///
- public async Task ProcessRequestAsync(HttpContext context, CT ct = default)
+ public async Task ProcessRequestAsync(HttpContext context, Ct ct = default)
{
logger.ProcessingSilentLoginCallbackRequest(LogLevel.Debug);
diff --git a/bff/src/Bff/Endpoints/Internal/DefaultSilentLoginEndpoint.cs b/bff/src/Bff/Endpoints/Internal/DefaultSilentLoginEndpoint.cs
index e231b690d..57b44a75a 100644
--- a/bff/src/Bff/Endpoints/Internal/DefaultSilentLoginEndpoint.cs
+++ b/bff/src/Bff/Endpoints/Internal/DefaultSilentLoginEndpoint.cs
@@ -23,7 +23,7 @@ internal class DefaultSilentLoginEndpoint(IOptions options, ILogger<
private readonly BffOptions _options = options.Value;
///
- public async Task ProcessRequestAsync(HttpContext context, CT ct = default)
+ public async Task ProcessRequestAsync(HttpContext context, Ct ct = default)
{
logger.ProcessingSilentLoginRequest(LogLevel.Debug);
diff --git a/bff/src/Bff/Endpoints/Internal/DefaultUserEndpoint.cs b/bff/src/Bff/Endpoints/Internal/DefaultUserEndpoint.cs
index 27c934bbf..3f8387995 100644
--- a/bff/src/Bff/Endpoints/Internal/DefaultUserEndpoint.cs
+++ b/bff/src/Bff/Endpoints/Internal/DefaultUserEndpoint.cs
@@ -26,7 +26,7 @@ internal class DefaultUserEndpoint(IOptions options, ILogger
- public async Task ProcessRequestAsync(HttpContext context, CT ct = default)
+ public async Task ProcessRequestAsync(HttpContext context, Ct ct = default)
{
logger.ProcessingUserRequest(LogLevel.Debug);
@@ -76,7 +76,7 @@ internal class DefaultUserEndpoint(IOptions options, ILogger
///
- private static Task> GetUserClaimsAsync(AuthenticateResult authenticateResult, CT ct = default) =>
+ private static Task> GetUserClaimsAsync(AuthenticateResult authenticateResult, Ct ct = default) =>
Task.FromResult(authenticateResult.Principal?.Claims.Select(x => new ClaimRecord(x.Type, x.Value)) ?? Enumerable.Empty());
///
@@ -86,7 +86,7 @@ internal class DefaultUserEndpoint(IOptions options, ILogger> GetManagementClaimsAsync(
HttpContext context,
AuthenticateResult authenticateResult,
- CT ct = default)
+ Ct ct = default)
{
var claims = new List();
diff --git a/bff/src/Bff/HttpContextExtensions.cs b/bff/src/Bff/HttpContextExtensions.cs
index f2254abac..f995a975c 100644
--- a/bff/src/Bff/HttpContextExtensions.cs
+++ b/bff/src/Bff/HttpContextExtensions.cs
@@ -51,7 +51,7 @@ internal static class HttpContextExtensions
this HttpContext context,
RequiredTokenType requiredTokenType,
BffUserAccessTokenParameters? userAccessTokenParameters = null,
- CT ct = default)
+ Ct ct = default)
{
if (requiredTokenType == RequiredTokenType.None)
{
diff --git a/bff/src/Bff/Internal/DefaultAccessTokenRetriever.cs b/bff/src/Bff/Internal/DefaultAccessTokenRetriever.cs
index 8da2852b5..db4c900d3 100644
--- a/bff/src/Bff/Internal/DefaultAccessTokenRetriever.cs
+++ b/bff/src/Bff/Internal/DefaultAccessTokenRetriever.cs
@@ -12,7 +12,7 @@ namespace Duende.Bff.Internal;
internal class DefaultAccessTokenRetriever() : IAccessTokenRetriever
{
///
- public async Task GetAccessTokenAsync(AccessTokenRetrievalContext context, CT ct = default)
+ public async Task GetAccessTokenAsync(AccessTokenRetrievalContext context, Ct ct = default)
{
if (context.Metadata.TokenType.HasValue)
{
diff --git a/bff/src/Bff/SessionManagement/Revocation/ISessionRevocationService.cs b/bff/src/Bff/SessionManagement/Revocation/ISessionRevocationService.cs
index d8506663c..2c9a4b917 100644
--- a/bff/src/Bff/SessionManagement/Revocation/ISessionRevocationService.cs
+++ b/bff/src/Bff/SessionManagement/Revocation/ISessionRevocationService.cs
@@ -17,5 +17,5 @@ public interface ISessionRevocationService
///
/// A token that can be used to request cancellation of the asynchronous operation.
///
- Task RevokeSessionsAsync(UserSessionsFilter filter, CT ct = default);
+ Task RevokeSessionsAsync(UserSessionsFilter filter, Ct ct = default);
}
diff --git a/bff/src/Bff/SessionManagement/Revocation/NopSessionRevocationService.cs b/bff/src/Bff/SessionManagement/Revocation/NopSessionRevocationService.cs
index 87a632758..53d5d094c 100644
--- a/bff/src/Bff/SessionManagement/Revocation/NopSessionRevocationService.cs
+++ b/bff/src/Bff/SessionManagement/Revocation/NopSessionRevocationService.cs
@@ -13,7 +13,7 @@ namespace Duende.Bff.SessionManagement.Revocation;
internal class NopSessionRevocationService(ILogger logger) : ISessionRevocationService
{
///
- public Task RevokeSessionsAsync(UserSessionsFilter filter, CT ct = default)
+ public Task RevokeSessionsAsync(UserSessionsFilter filter, Ct ct = default)
{
logger.NopSessionRevocation(LogLevel.Debug, filter.SubjectId, filter.SessionId);
return Task.CompletedTask;
diff --git a/bff/src/Bff/SessionManagement/Revocation/SessionRevocationService.cs b/bff/src/Bff/SessionManagement/Revocation/SessionRevocationService.cs
index 2ba398864..ddca3b7e3 100644
--- a/bff/src/Bff/SessionManagement/Revocation/SessionRevocationService.cs
+++ b/bff/src/Bff/SessionManagement/Revocation/SessionRevocationService.cs
@@ -27,7 +27,7 @@ internal class SessionRevocationService(
private readonly BffOptions _options = options.Value;
///
- public async Task RevokeSessionsAsync(UserSessionsFilter filter, CT ct = default)
+ public async Task RevokeSessionsAsync(UserSessionsFilter filter, Ct ct = default)
{
if (_options.BackchannelLogoutAllUserSessions)
{
diff --git a/bff/src/Bff/SessionManagement/SessionStore/IUserSessionStore.cs b/bff/src/Bff/SessionManagement/SessionStore/IUserSessionStore.cs
index 115f5806e..5436894d8 100644
--- a/bff/src/Bff/SessionManagement/SessionStore/IUserSessionStore.cs
+++ b/bff/src/Bff/SessionManagement/SessionStore/IUserSessionStore.cs
@@ -15,7 +15,7 @@ public interface IUserSessionStore
///
/// A token that can be used to request cancellation of the asynchronous operation.
///
- Task GetUserSessionAsync(UserSessionKey key, CT ct = default);
+ Task GetUserSessionAsync(UserSessionKey key, Ct ct = default);
///
/// Creates a user session
@@ -23,7 +23,7 @@ public interface IUserSessionStore
///
/// A token that can be used to request cancellation of the asynchronous operation.
///
- Task CreateUserSessionAsync(UserSession session, CT ct = default);
+ Task CreateUserSessionAsync(UserSession session, Ct ct = default);
///
/// Updates a user session
@@ -32,7 +32,7 @@ public interface IUserSessionStore
///
/// A token that can be used to request cancellation of the asynchronous operation.
///
- Task UpdateUserSessionAsync(UserSessionKey key, UserSessionUpdate session, CT ct = default);
+ Task UpdateUserSessionAsync(UserSessionKey key, UserSessionUpdate session, Ct ct = default);
///
/// Deletes a user session
@@ -40,7 +40,7 @@ public interface IUserSessionStore
///
/// A token that can be used to request cancellation of the asynchronous operation.
///
- Task DeleteUserSessionAsync(UserSessionKey key, CT ct = default);
+ Task DeleteUserSessionAsync(UserSessionKey key, Ct ct = default);
///
/// Queries user sessions based on the filter.
@@ -49,7 +49,7 @@ public interface IUserSessionStore
///
/// A token that can be used to request cancellation of the asynchronous operation.
///
- Task> GetUserSessionsAsync(PartitionKey partitionKey, UserSessionsFilter filter, CT ct = default);
+ Task> GetUserSessionsAsync(PartitionKey partitionKey, UserSessionsFilter filter, Ct ct = default);
///
/// Deletes user sessions based on the filter.
@@ -58,5 +58,5 @@ public interface IUserSessionStore
///
/// A token that can be used to request cancellation of the asynchronous operation.
///
- Task DeleteUserSessionsAsync(PartitionKey partitionKey, UserSessionsFilter filter, CT ct = default);
+ Task DeleteUserSessionsAsync(PartitionKey partitionKey, UserSessionsFilter filter, Ct ct = default);
}
diff --git a/bff/src/Bff/SessionManagement/SessionStore/IUserSessionStoreCleanup.cs b/bff/src/Bff/SessionManagement/SessionStore/IUserSessionStoreCleanup.cs
index 1a3968292..c802f8436 100644
--- a/bff/src/Bff/SessionManagement/SessionStore/IUserSessionStoreCleanup.cs
+++ b/bff/src/Bff/SessionManagement/SessionStore/IUserSessionStoreCleanup.cs
@@ -12,5 +12,5 @@ public interface IUserSessionStoreCleanup
///
/// Deletes expired sessions
///
- Task DeleteExpiredSessionsAsync(CT ct = default);
+ Task DeleteExpiredSessionsAsync(Ct ct = default);
}
diff --git a/bff/src/Bff/SessionManagement/SessionStore/InMemoryUserSessionStore.cs b/bff/src/Bff/SessionManagement/SessionStore/InMemoryUserSessionStore.cs
index 995f95ac0..f02d0f91b 100644
--- a/bff/src/Bff/SessionManagement/SessionStore/InMemoryUserSessionStore.cs
+++ b/bff/src/Bff/SessionManagement/SessionStore/InMemoryUserSessionStore.cs
@@ -19,7 +19,7 @@ internal class InMemoryUserSessionStore(
// A dictionary of dictionaries, where the outer dictionary is keyed by partition key
private readonly ConcurrentDictionary _store = new();
- public Task CreateUserSessionAsync(UserSession session, CT ct = default)
+ public Task CreateUserSessionAsync(UserSession session, Ct ct = default)
{
if (!session.PartitionKey.HasValue)
{
@@ -47,7 +47,7 @@ internal class InMemoryUserSessionStore(
return partition;
}
- public Task GetUserSessionAsync(UserSessionKey key, CT ct = default)
+ public Task GetUserSessionAsync(UserSessionKey key, Ct ct = default)
{
var partition = GetPartition(key.PartitionKey);
partition.TryGetValue(key.UserKey, out var item);
@@ -55,7 +55,7 @@ internal class InMemoryUserSessionStore(
return Task.FromResult(item?.Clone());
}
- public Task UpdateUserSessionAsync(UserSessionKey key, UserSessionUpdate session, CT ct = default)
+ public Task UpdateUserSessionAsync(UserSessionKey key, UserSessionUpdate session, Ct ct = default)
{
var partition = GetPartition(key.PartitionKey);
if (!partition.TryGetValue(key.UserKey, out var existing))
@@ -70,14 +70,14 @@ internal class InMemoryUserSessionStore(
return Task.CompletedTask;
}
- public Task DeleteUserSessionAsync(UserSessionKey key, CT ct = default)
+ public Task DeleteUserSessionAsync(UserSessionKey key, Ct ct = default)
{
var partition = GetPartition(key.PartitionKey);
partition.TryRemove(key.UserKey, out _);
return Task.CompletedTask;
}
- public Task> GetUserSessionsAsync(PartitionKey partitionKey, UserSessionsFilter filter, CT ct = default)
+ public Task> GetUserSessionsAsync(PartitionKey partitionKey, UserSessionsFilter filter, Ct ct = default)
{
filter.Validate();
var partition = GetPartition(partitionKey);
@@ -97,7 +97,7 @@ internal class InMemoryUserSessionStore(
return Task.FromResult((IReadOnlyCollection)results);
}
- public Task DeleteUserSessionsAsync(PartitionKey partitionKey, UserSessionsFilter filter, CT ct = default)
+ public Task DeleteUserSessionsAsync(PartitionKey partitionKey, UserSessionsFilter filter, Ct ct = default)
{
filter.Validate();
var partition = GetPartition(partitionKey);
diff --git a/bff/src/Bff/SessionManagement/SessionStore/SessionCleanupHost.cs b/bff/src/Bff/SessionManagement/SessionStore/SessionCleanupHost.cs
index ff113b321..abacbd09c 100644
--- a/bff/src/Bff/SessionManagement/SessionStore/SessionCleanupHost.cs
+++ b/bff/src/Bff/SessionManagement/SessionStore/SessionCleanupHost.cs
@@ -23,7 +23,7 @@ internal class SessionCleanupHost(
private TimeSpan CleanupInterval => _options.SessionCleanupInterval;
- public override Task StartAsync(CT ct)
+ public override Task StartAsync(Ct ct)
{
if (!IsIUserSessionStoreCleanupRegistered())
{
@@ -34,7 +34,7 @@ internal class SessionCleanupHost(
return base.StartAsync(ct);
}
- protected override async Task ExecuteAsync(CT ct)
+ protected override async Task ExecuteAsync(Ct ct)
{
while (true)
{
@@ -70,7 +70,7 @@ internal class SessionCleanupHost(
}
}
- internal async Task RunAsync(CT ct = default)
+ internal async Task RunAsync(Ct ct = default)
{
try
{
diff --git a/bff/src/Bff/SessionManagement/TicketStore/IServerTicketStore.cs b/bff/src/Bff/SessionManagement/TicketStore/IServerTicketStore.cs
index ee4e1e3c3..a1dc53f1d 100644
--- a/bff/src/Bff/SessionManagement/TicketStore/IServerTicketStore.cs
+++ b/bff/src/Bff/SessionManagement/TicketStore/IServerTicketStore.cs
@@ -18,5 +18,5 @@ public interface IServerTicketStore : ITicketStore
///
/// A token that can be used to request cancellation of the asynchronous operation.
///
- Task> GetUserTicketsAsync(UserSessionsFilter filter, CT ct = default);
+ Task> GetUserTicketsAsync(UserSessionsFilter filter, Ct ct = default);
}
diff --git a/bff/src/Bff/SessionManagement/TicketStore/ServerSideTicketStore.cs b/bff/src/Bff/SessionManagement/TicketStore/ServerSideTicketStore.cs
index 93a0ea875..e49fa97ca 100644
--- a/bff/src/Bff/SessionManagement/TicketStore/ServerSideTicketStore.cs
+++ b/bff/src/Bff/SessionManagement/TicketStore/ServerSideTicketStore.cs
@@ -31,7 +31,7 @@ internal class ServerSideTicketStore(
private readonly IDataProtector _protector = dataProtectionProvider.CreateProtector(DataProtectorPurpose);
- private CT _ct => accessor.HttpContext?.RequestAborted ?? CT.None;
+ private Ct _ct => accessor.HttpContext?.RequestAborted ?? Ct.None;
///
public async Task StoreAsync(AuthenticationTicket ticket)
@@ -154,7 +154,7 @@ internal class ServerSideTicketStore(
}
///
- public async Task> GetUserTicketsAsync(UserSessionsFilter filter, CT ct)
+ public async Task> GetUserTicketsAsync(UserSessionsFilter filter, Ct ct)
{
logger.GettingAuthenticationTickets(LogLevel.Debug, filter.SubjectId, filter.SessionId);
diff --git a/bff/test/Bff.Tests/BffFrontendIndexTests.cs b/bff/test/Bff.Tests/BffFrontendIndexTests.cs
index 63b122525..b90097a52 100644
--- a/bff/test/Bff.Tests/BffFrontendIndexTests.cs
+++ b/bff/test/Bff.Tests/BffFrontendIndexTests.cs
@@ -171,7 +171,7 @@ public class BffFrontendIndexTests : BffTestBase
{
private int count = 1;
- public Task Transform(string html, BffFrontend frontend, CT ct = default) => Task.FromResult($"{html} - transformed {count++}");
+ public Task Transform(string html, BffFrontend frontend, Ct ct = default) => Task.FromResult($"{html} - transformed {count++}");
}
[Fact]
diff --git a/bff/test/Bff.Tests/BffFrontendSigninTests.cs b/bff/test/Bff.Tests/BffFrontendSigninTests.cs
index 918be7852..50c99a202 100644
--- a/bff/test/Bff.Tests/BffFrontendSigninTests.cs
+++ b/bff/test/Bff.Tests/BffFrontendSigninTests.cs
@@ -60,7 +60,7 @@ public class BffFrontendSigninTests : BffTestBase
Bff.OnConfigureApp += app =>
{
- app.MapGet(pathString, (HttpContext c, CT ct) => "ok");
+ app.MapGet(pathString, (HttpContext c, Ct ct) => "ok");
};
await InitializeAsync();
diff --git a/bff/test/Bff.Tests/BffRemoteApiTests.cs b/bff/test/Bff.Tests/BffRemoteApiTests.cs
index f0182ab81..d5b7ee867 100644
--- a/bff/test/Bff.Tests/BffRemoteApiTests.cs
+++ b/bff/test/Bff.Tests/BffRemoteApiTests.cs
@@ -143,7 +143,7 @@ public class BffRemoteApiTests : BffTestBase
public bool WasCalled = false;
public Task> GetAccessTokenAsync(ClaimsPrincipal user, UserTokenRequestParameters? parameters = null,
- CT ct = new CT())
+ Ct ct = new Ct())
{
WasCalled = true;
// We don't care actually about the result token. Just if it was called or not.
@@ -151,7 +151,7 @@ public class BffRemoteApiTests : BffTestBase
}
public Task RevokeRefreshTokenAsync(ClaimsPrincipal user, UserTokenRequestParameters? parameters = null,
- CT ct = new CT()) => throw new NotImplementedException();
+ Ct ct = new Ct()) => throw new NotImplementedException();
}
[Fact]
diff --git a/bff/test/Bff.Tests/BffScenarioTests.cs b/bff/test/Bff.Tests/BffScenarioTests.cs
index 1fdbb346d..c5764b9b7 100644
--- a/bff/test/Bff.Tests/BffScenarioTests.cs
+++ b/bff/test/Bff.Tests/BffScenarioTests.cs
@@ -47,7 +47,7 @@ public class BffScenarioTests : BffTestBase
TaskCompletionSource contentReceived,
TaskCompletionSource workerIsAllowedToStart) : BackgroundService
{
- protected override async Task ExecuteAsync(CT stoppingToken)
+ protected override async Task ExecuteAsync(Ct stoppingToken)
{
await workerIsAllowedToStart.Task;
diff --git a/bff/test/Bff.Tests/BffWithoutExplicitFrontendTests.cs b/bff/test/Bff.Tests/BffWithoutExplicitFrontendTests.cs
index 40f11c29b..18059beaf 100644
--- a/bff/test/Bff.Tests/BffWithoutExplicitFrontendTests.cs
+++ b/bff/test/Bff.Tests/BffWithoutExplicitFrontendTests.cs
@@ -11,7 +11,7 @@ public class BffWithoutExplicitFrontendTests : BffTestBase
{
Bff.OnConfigureApp += app =>
{
- app.MapGet("/secret", (HttpContext c, CT ct) =>
+ app.MapGet("/secret", (HttpContext c, Ct ct) =>
{
if (!c.User.IsAuthenticated())
{
diff --git a/bff/test/Bff.Tests/Blazor/Client/AntiforgeryHandlerTests.cs b/bff/test/Bff.Tests/Blazor/Client/AntiforgeryHandlerTests.cs
index 30a7b2949..1510efc29 100644
--- a/bff/test/Bff.Tests/Blazor/Client/AntiforgeryHandlerTests.cs
+++ b/bff/test/Bff.Tests/Blazor/Client/AntiforgeryHandlerTests.cs
@@ -23,7 +23,7 @@ public class AntiForgeryHandlerTests
var client = new HttpClient(sut);
- await client.SendAsync(request, CT.None);
+ await client.SendAsync(request, Ct.None);
request.Headers.ShouldContain(h => h.Key == "X-CSRF" && h.Value.Contains("1"));
}
@@ -31,5 +31,5 @@ public class AntiForgeryHandlerTests
public class NoOpHttpMessageHandler : HttpMessageHandler
{
- protected override Task SendAsync(HttpRequestMessage request, CT ct) => Task.FromResult(new HttpResponseMessage(HttpStatusCode.OK));
+ protected override Task SendAsync(HttpRequestMessage request, Ct ct) => Task.FromResult(new HttpResponseMessage(HttpStatusCode.OK));
}
diff --git a/bff/test/Bff.Tests/Blazor/Client/FetchUserServiceTests.cs b/bff/test/Bff.Tests/Blazor/Client/FetchUserServiceTests.cs
index 8b0b24987..3f31bf19d 100644
--- a/bff/test/Bff.Tests/Blazor/Client/FetchUserServiceTests.cs
+++ b/bff/test/Bff.Tests/Blazor/Client/FetchUserServiceTests.cs
@@ -60,7 +60,7 @@ public class MockHttpMessageHandler : HttpMessageHandler
}
protected override async Task SendAsync(HttpRequestMessage request,
- CT ct)
+ Ct ct)
{
if (request.Content != null) // Could be a GET-request without a body
{
diff --git a/bff/test/Bff.Tests/ConventionTests.cs b/bff/test/Bff.Tests/ConventionTests.cs
index 315bddc53..99488431e 100644
--- a/bff/test/Bff.Tests/ConventionTests.cs
+++ b/bff/test/Bff.Tests/ConventionTests.cs
@@ -211,12 +211,12 @@ public class ConventionTests
failures.Add($"{type.FullName}.{method.Name}: Async method should be suffixed with 'Async'.");
}
- // 2. Last parameter should be a CT (if there are any parameters)
+ // 2. Last parameter should be a Ct (if there are any parameters)
var parameters = method.GetParameters();
- if (parameters.Length == 0 || parameters.Last().ParameterType != typeof(CT))
+ if (parameters.Length == 0 || parameters.Last().ParameterType != typeof(Ct))
{
failures.Add(
- $"{type.FullName}.{method.Name}: Async method should have a CT as the last parameter.");
+ $"{type.FullName}.{method.Name}: Async method should have a Ct as the last parameter.");
}
}
}
@@ -273,7 +273,7 @@ public class ConventionTests
}
var ctParam = parameters.Last();
- if (ctParam.ParameterType != typeof(CT))
+ if (ctParam.ParameterType != typeof(Ct))
{
failures.Add($"{type.FullName}.{method.Name}: Last parameter should be CancellationToken.");
continue;
diff --git a/bff/test/Bff.Tests/Endpoints/Management/UserEndpointTests.cs b/bff/test/Bff.Tests/Endpoints/Management/UserEndpointTests.cs
index 684510229..0aa7b554f 100644
--- a/bff/test/Bff.Tests/Endpoints/Management/UserEndpointTests.cs
+++ b/bff/test/Bff.Tests/Endpoints/Management/UserEndpointTests.cs
@@ -33,7 +33,7 @@ public class UserEndpointTests : BffTestBase
private class TestClaimsEnricher(IHttpClientFactory factory) : IUserEndpointClaimsEnricher
{
- public async Task> EnrichClaimsAsync(AuthenticateResult authenticateResult, IReadOnlyList claims, CT ct = default)
+ public async Task> EnrichClaimsAsync(AuthenticateResult authenticateResult, IReadOnlyList claims, Ct ct = default)
{
var client = factory.CreateClient("c1");
diff --git a/bff/test/Bff.Tests/IAccessTokenRetriever_Extensibility_tests.cs b/bff/test/Bff.Tests/IAccessTokenRetriever_Extensibility_tests.cs
index cb381ed83..d351ec1c4 100644
--- a/bff/test/Bff.Tests/IAccessTokenRetriever_Extensibility_tests.cs
+++ b/bff/test/Bff.Tests/IAccessTokenRetriever_Extensibility_tests.cs
@@ -92,7 +92,7 @@ public class IAccessTokenRetriever_Extensibility_tests : BffTestBase
{
}
- public async Task GetAccessTokenAsync(AccessTokenRetrievalContext context, CT ct = default)
+ public async Task GetAccessTokenAsync(AccessTokenRetrievalContext context, Ct ct = default)
{
UsedContext = context;
if (context.Metadata.TokenType.HasValue)
diff --git a/bff/test/Bff.Tests/SessionManagement/ServerSideTokenStoreTests.cs b/bff/test/Bff.Tests/SessionManagement/ServerSideTokenStoreTests.cs
index fd3517d53..23ffff2e4 100644
--- a/bff/test/Bff.Tests/SessionManagement/ServerSideTokenStoreTests.cs
+++ b/bff/test/Bff.Tests/SessionManagement/ServerSideTokenStoreTests.cs
@@ -117,7 +117,7 @@ public class ServerSideTokenStoreTests
public Task SetUserTokenAsync(UserToken token, AuthenticationProperties authenticationProperties,
- UserTokenRequestParameters? parameters = null, CT ct = new CT())
+ UserTokenRequestParameters? parameters = null, Ct ct = new Ct())
{
Stored = token;
return Task.CompletedTask;
@@ -127,7 +127,7 @@ public class ServerSideTokenStoreTests
UserTokenRequestParameters? parameters = null) => Stored = null;
public Task GetSchemeAsync(UserTokenRequestParameters? parameters = null,
- CT ct = new CT()) =>
+ Ct ct = new Ct()) =>
Task.FromResult(Scheme.Bearer);
}
diff --git a/bff/test/Bff.Tests/TestFramework/FailureAccessTokenRetriever.cs b/bff/test/Bff.Tests/TestFramework/FailureAccessTokenRetriever.cs
index e4db35e36..11eb626f5 100644
--- a/bff/test/Bff.Tests/TestFramework/FailureAccessTokenRetriever.cs
+++ b/bff/test/Bff.Tests/TestFramework/FailureAccessTokenRetriever.cs
@@ -7,7 +7,7 @@ namespace Duende.Bff.Tests.TestFramework;
public class FailureAccessTokenRetriever : IAccessTokenRetriever
{
- public Task GetAccessTokenAsync(AccessTokenRetrievalContext context, CT ct = default) =>
+ public Task GetAccessTokenAsync(AccessTokenRetrievalContext context, Ct ct = default) =>
Task.FromResult(new AccessTokenRetrievalError
{
Error = "no access token"
diff --git a/bff/test/Bff.Tests/TestFramework/MockSessionRevocationService.cs b/bff/test/Bff.Tests/TestFramework/MockSessionRevocationService.cs
index 163aa365d..441ded8bc 100644
--- a/bff/test/Bff.Tests/TestFramework/MockSessionRevocationService.cs
+++ b/bff/test/Bff.Tests/TestFramework/MockSessionRevocationService.cs
@@ -10,7 +10,7 @@ public class MockSessionRevocationService : ISessionRevocationService
{
public bool DeleteUserSessionsWasCalled { get; set; }
public UserSessionsFilter? DeleteUserSessionsFilter { get; set; }
- public Task RevokeSessionsAsync(UserSessionsFilter filter, CT ct)
+ public Task RevokeSessionsAsync(UserSessionsFilter filter, Ct ct)
{
DeleteUserSessionsWasCalled = true;
DeleteUserSessionsFilter = filter;
diff --git a/bff/test/Bff.Tests/TestFramework/TestAccessTokenRetriever.cs b/bff/test/Bff.Tests/TestFramework/TestAccessTokenRetriever.cs
index 04b4e7cb4..905a57ac5 100644
--- a/bff/test/Bff.Tests/TestFramework/TestAccessTokenRetriever.cs
+++ b/bff/test/Bff.Tests/TestFramework/TestAccessTokenRetriever.cs
@@ -7,5 +7,5 @@ namespace Duende.Bff.Tests.TestFramework;
public class TestAccessTokenRetriever(Func> accessTokenGetter) : IAccessTokenRetriever
{
- public async Task GetAccessTokenAsync(AccessTokenRetrievalContext context, CT ct = default) => await accessTokenGetter();
+ public async Task GetAccessTokenAsync(AccessTokenRetrievalContext context, Ct ct = default) => await accessTokenGetter();
}
diff --git a/bff/test/Bff.Tests/TestFramework/TestBrowserClient.cs b/bff/test/Bff.Tests/TestFramework/TestBrowserClient.cs
index 115d232f5..f4398d6ad 100644
--- a/bff/test/Bff.Tests/TestFramework/TestBrowserClient.cs
+++ b/bff/test/Bff.Tests/TestFramework/TestBrowserClient.cs
@@ -15,7 +15,7 @@ public class TestBrowserClient : HttpClient
public HttpResponseMessage? LastResponse { get; private set; }
protected override async Task SendAsync(HttpRequestMessage request,
- CT ct)
+ Ct ct)
{
CurrentUri = request.RequestUri ?? throw new NullReferenceException("RequestUri is not set");
var cookieHeader = CookieContainer.GetCookieHeader(request.RequestUri);
@@ -83,7 +83,7 @@ public class TestBrowserClient : HttpClient
internal async Task CallBffHostApi(
string url,
HttpStatusCode? expectedStatusCode = null,
- CT ct = default)
+ Ct ct = default)
{
var req = new HttpRequestMessage(HttpMethod.Get, url);
req.Headers.Add("x-csrf", "1");
@@ -112,7 +112,7 @@ public class TestBrowserClient : HttpClient
HttpMethod method,
HttpContent? content = null,
HttpStatusCode? expectedStatusCode = null,
- CT ct = default)
+ Ct ct = default)
{
var req = new HttpRequestMessage(method, url);
if (req.Content == null)
diff --git a/bff/test/Bff.Tests/TestInfra/BffHttpClient.cs b/bff/test/Bff.Tests/TestInfra/BffHttpClient.cs
index 6483082d4..eaa33a0c6 100644
--- a/bff/test/Bff.Tests/TestInfra/BffHttpClient.cs
+++ b/bff/test/Bff.Tests/TestInfra/BffHttpClient.cs
@@ -51,7 +51,7 @@ public class BffHttpClient(RedirectHandler handler, CookieContainer cookies, Ide
HttpContent? content = null,
HttpStatusCode? expectedStatusCode = null,
Dictionary? headers = null,
- CT ct = default) => CallBffHostApi(
+ Ct ct = default) => CallBffHostApi(
url: new Uri(path, UriKind.Relative),
method: method,
content: content,
@@ -65,7 +65,7 @@ public class BffHttpClient(RedirectHandler handler, CookieContainer cookies, Ide
HttpContent? content = null,
HttpStatusCode? expectedStatusCode = null,
Dictionary? headers = null,
- CT ct = default)
+ Ct ct = default)
{
method ??= HttpMethod.Get;
var req = new HttpRequestMessage(method, url);
diff --git a/bff/test/Bff.Tests/TestInfra/CookieHandler.cs b/bff/test/Bff.Tests/TestInfra/CookieHandler.cs
index 94fe8901f..391a9d4b2 100644
--- a/bff/test/Bff.Tests/TestInfra/CookieHandler.cs
+++ b/bff/test/Bff.Tests/TestInfra/CookieHandler.cs
@@ -9,7 +9,7 @@ namespace Duende.Bff.Tests.TestInfra;
public class CookieHandler(HttpMessageHandler innerHandler, CookieContainer cookieContainer)
: DelegatingHandler(innerHandler)
{
- protected override async Task SendAsync(HttpRequestMessage request, CT ct)
+ protected override async Task SendAsync(HttpRequestMessage request, Ct ct)
{
var requestUri = request.RequestUri;
var header = cookieContainer.GetCookieHeader(requestUri!);
diff --git a/bff/test/Bff.Tests/TestInfra/RedirectHandler.cs b/bff/test/Bff.Tests/TestInfra/RedirectHandler.cs
index feb390c3e..81207d738 100644
--- a/bff/test/Bff.Tests/TestInfra/RedirectHandler.cs
+++ b/bff/test/Bff.Tests/TestInfra/RedirectHandler.cs
@@ -12,7 +12,7 @@ public class RedirectHandler(WriteTestOutput output) : DelegatingHandler
public bool AutoFollowRedirects { get; set; } = true;
protected override async Task SendAsync(HttpRequestMessage request,
- CT ct)
+ Ct ct)
{
var originalUri = request.RequestUri;
diff --git a/bff/test/Bff.Tests/TestInfra/RoutingMessageHandler.cs b/bff/test/Bff.Tests/TestInfra/RoutingMessageHandler.cs
index 708ba204a..9d1502f14 100644
--- a/bff/test/Bff.Tests/TestInfra/RoutingMessageHandler.cs
+++ b/bff/test/Bff.Tests/TestInfra/RoutingMessageHandler.cs
@@ -27,7 +27,7 @@ public class RoutingMessageHandler : HttpMessageHandler
protected override Task SendAsync(
HttpRequestMessage request,
- CT ct)
+ Ct ct)
{
var host = $"{request.RequestUri?.Host}:{request.RequestUri?.Port}";
@@ -46,7 +46,7 @@ public class RoutingMessageHandler : HttpMessageHandler
{
internal Task SuppressedSend(
HttpRequestMessage request,
- CT ct)
+ Ct ct)
{
Task t;
if (ExecutionContext.IsFlowSuppressed())
diff --git a/bff/test/Bff.Tests/TestInfra/SimulatedInternet.cs b/bff/test/Bff.Tests/TestInfra/SimulatedInternet.cs
index d7aa10cdb..316ba1999 100644
--- a/bff/test/Bff.Tests/TestInfra/SimulatedInternet.cs
+++ b/bff/test/Bff.Tests/TestInfra/SimulatedInternet.cs
@@ -59,7 +59,7 @@ public class SimulatedInternet : DelegatingHandler
protected override async Task SendAsync(
HttpRequestMessage request,
- CT ct)
+ Ct ct)
{
var requestId = Interlocked.Increment(ref _requestIdSeed);
diff --git a/bff/test/Bff.Tests/TestInfra/TestHybridCache.cs b/bff/test/Bff.Tests/TestInfra/TestHybridCache.cs
index 08a21cfbf..24ec0cd22 100644
--- a/bff/test/Bff.Tests/TestInfra/TestHybridCache.cs
+++ b/bff/test/Bff.Tests/TestInfra/TestHybridCache.cs
@@ -10,19 +10,19 @@ internal class TestHybridCache : HybridCache
{
private ConcurrentDictionary> _cache = new();
public override async ValueTask GetOrCreateAsync(string key, TState state,
- Func> factory, HybridCacheEntryOptions? options = null,
- IEnumerable? tags = null, CT ct = new CT()) => (T)await _cache.GetOrAdd(key, async _ => (await factory(state, ct))!);
+ Func> factory, HybridCacheEntryOptions? options = null,
+ IEnumerable? tags = null, Ct ct = new Ct()) => (T)await _cache.GetOrAdd(key, async _ => (await factory(state, ct))!);
public override ValueTask SetAsync(string key, T value, HybridCacheEntryOptions? options = null,
IEnumerable? tags = null,
- CT ct = new CT())
+ Ct ct = new Ct())
{
_cache[key] = new ValueTask
/// The cancellation token.
/// A conformance report containing the assessment results.
- public async Task GenerateReportAsync(CT ct)
+ public async Task GenerateReportAsync(Ct ct)
{
var clients = await _clientStore.GetAllClientsAsync(ct);
var clientList = clients.ToList();
@@ -91,7 +91,7 @@ internal class ConformanceReportAssessmentService
/// A profile result containing the assessment findings.
public async Task AssessProfileAsync(
ConformanceReportProfile profile,
- CT ct)
+ Ct ct)
{
var clients = await _clientStore.GetAllClientsAsync(ct);
var clientList = clients.ToList();
diff --git a/docs-mcp/src/Documentation.Mcp/Sources/Blog/BlogSearchTool.cs b/docs-mcp/src/Documentation.Mcp/Sources/Blog/BlogSearchTool.cs
index e4da5a338..cc15bbf9a 100644
--- a/docs-mcp/src/Documentation.Mcp/Sources/Blog/BlogSearchTool.cs
+++ b/docs-mcp/src/Documentation.Mcp/Sources/Blog/BlogSearchTool.cs
@@ -19,7 +19,7 @@ internal sealed class BlogSearchTool(McpDb db)
[Description("The search query. Keep it concise and specific to increase the likelihood of a match.")] string query)
{
var results = await db.FTSBlogArticle
- .FromSqlRaw("SELECT * FROM FTSBlogArticle WHERE Title MATCH {0} OR Content MATCH {0} ORDER BY rank", McpDb.EscapeFtsQueryString(query))
+ .FromSqlRaw("SELECt * FROM FTSBlogArticle WHERE Title MATCH {0} OR Content MATCH {0} ORDER BY rank", McpDb.EscapeFtsQueryString(query))
.AsNoTracking()
.Take(6)
.ToListAsync();
@@ -48,7 +48,7 @@ internal sealed class BlogSearchTool(McpDb db)
public async Task Fetch([Description("The document id.")] string id)
{
var result = await db.FTSBlogArticle
- .FromSqlRaw("SELECT * FROM FTSBlogArticle WHERE Id = {0} ORDER BY rank", id)
+ .FromSqlRaw("SELECt * FROM FTSBlogArticle WHERE Id = {0} ORDER BY rank", id)
.AsNoTracking()
.FirstOrDefaultAsync();
diff --git a/docs-mcp/src/Documentation.Mcp/Sources/Docs/DocsSearchTool.cs b/docs-mcp/src/Documentation.Mcp/Sources/Docs/DocsSearchTool.cs
index 6a7d03bf3..cd2d31291 100644
--- a/docs-mcp/src/Documentation.Mcp/Sources/Docs/DocsSearchTool.cs
+++ b/docs-mcp/src/Documentation.Mcp/Sources/Docs/DocsSearchTool.cs
@@ -19,7 +19,7 @@ internal sealed class DocsSearchTool(McpDb db)
[Description("The search query. Keep it concise and specific to increase the likelihood of a match.")] string query)
{
var results = await db.FTSDocsArticle
- .FromSqlRaw("SELECT * FROM FTSDocsArticle WHERE Title MATCH {0} OR Content MATCH {0} OR Product MATCH {0} ORDER BY rank", McpDb.EscapeFtsQueryString(query))
+ .FromSqlRaw("SELECt * FROM FTSDocsArticle WHERE Title MATCH {0} OR Content MATCH {0} OR Product MATCH {0} ORDER BY rank", McpDb.EscapeFtsQueryString(query))
.AsNoTracking()
.Take(6)
.ToListAsync();
@@ -49,7 +49,7 @@ internal sealed class DocsSearchTool(McpDb db)
[Description("The document id.")] string id)
{
var result = await db.FTSDocsArticle
- .FromSqlRaw("SELECT * FROM FTSDocsArticle WHERE Id = {0} ORDER BY rank", id)
+ .FromSqlRaw("SELECt * FROM FTSDocsArticle WHERE Id = {0} ORDER BY rank", id)
.AsNoTracking()
.FirstOrDefaultAsync();
diff --git a/docs-mcp/src/Documentation.Mcp/Sources/Samples/SamplesSearchTool.cs b/docs-mcp/src/Documentation.Mcp/Sources/Samples/SamplesSearchTool.cs
index 01b583b81..39362aa7c 100644
--- a/docs-mcp/src/Documentation.Mcp/Sources/Samples/SamplesSearchTool.cs
+++ b/docs-mcp/src/Documentation.Mcp/Sources/Samples/SamplesSearchTool.cs
@@ -19,7 +19,7 @@ internal sealed class SamplesSearchTool(McpDb db)
[Description("The search query. Keep it concise and specific to increase the likelihood of a match.")] string query)
{
var results = await db.FTSSampleProject
- .FromSqlRaw("SELECT * FROM FTSSampleProject WHERE Title MATCH {0} OR Description MATCH {0} OR Product MATCH {0} ORDER BY rank", McpDb.EscapeFtsQueryString(query, "OR"))
+ .FromSqlRaw("SELECt * FROM FTSSampleProject WHERE Title MATCH {0} OR Description MATCH {0} OR Product MATCH {0} ORDER BY rank", McpDb.EscapeFtsQueryString(query, "OR"))
.AsNoTracking()
.Take(6)
.ToListAsync();
@@ -49,7 +49,7 @@ internal sealed class SamplesSearchTool(McpDb db)
[Description("The document id.")] string id)
{
var result = await db.FTSSampleProject
- .FromSqlRaw("SELECT * FROM FTSSampleProject WHERE Id = {0} ORDER BY rank", id)
+ .FromSqlRaw("SELECt * FROM FTSSampleProject WHERE Id = {0} ORDER BY rank", id)
.AsNoTracking()
.FirstOrDefaultAsync();
@@ -72,7 +72,7 @@ internal sealed class SamplesSearchTool(McpDb db)
filename = filename.Replace("wwwroot", "~", StringComparison.Ordinal);
var result = await db.FTSSampleProject
- .FromSqlRaw("SELECT * FROM FTSSampleProject WHERE Id = {0} ORDER BY rank", id)
+ .FromSqlRaw("SELECt * FROM FTSSampleProject WHERE Id = {0} ORDER BY rank", id)
.AsNoTracking()
.FirstOrDefaultAsync();
diff --git a/identity-server/aspire/ServiceDefaults/Extensions.cs b/identity-server/aspire/ServiceDefaults/Extensions.cs
index 5c5d31796..b0b3730bf 100644
--- a/identity-server/aspire/ServiceDefaults/Extensions.cs
+++ b/identity-server/aspire/ServiceDefaults/Extensions.cs
@@ -82,7 +82,7 @@ public static class Extensions
}
// Uncomment the following lines to enable the Azure Monitor exporter (requires the Azure.Monitor.OpenTelemetry.AspNetCore package)
- //if (!string.IsNullOrEmpty(builder.Configuration["APPLICATIONINSIGHTS_CONNECTION_STRING"]))
+ //if (!string.IsNullOrEmpty(builder.Configuration["APPLICATIONINSIGHTS_CONNECtION_STRING"]))
//{
// builder.Services.AddOpenTelemetry()
// .UseAzureMonitor();
diff --git a/identity-server/clients/src/ConsoleCode/SystemBrowser.cs b/identity-server/clients/src/ConsoleCode/SystemBrowser.cs
index 3e041c3b2..f636ccbf7 100644
--- a/identity-server/clients/src/ConsoleCode/SystemBrowser.cs
+++ b/identity-server/clients/src/ConsoleCode/SystemBrowser.cs
@@ -45,7 +45,7 @@ public class SystemBrowser : IBrowser
return port;
}
- public async Task InvokeAsync(BrowserOptions options, CT ct = default)
+ public async Task InvokeAsync(BrowserOptions options, Ct ct = default)
{
using (var listener = new LoopbackHttpListener(Port, _path))
{
diff --git a/identity-server/clients/src/ConsolePrivateKeyJwtClient/Program.cs b/identity-server/clients/src/ConsolePrivateKeyJwtClient/Program.cs
index 4439f5424..c21dae2a7 100644
--- a/identity-server/clients/src/ConsolePrivateKeyJwtClient/Program.cs
+++ b/identity-server/clients/src/ConsolePrivateKeyJwtClient/Program.cs
@@ -49,7 +49,7 @@ var ecKey =
{
"kty":"EC",
"crv":"P-256",
- "x":"MKBCTNIcKUSDii11ySs3526iDZ8AiTo7Tu6KPAqv7D4",
+ "x":"MKBCtNIcKUSDii11ySs3526iDZ8AiTo7Tu6KPAqv7D4",
"y":"4Etl6SRW2YiLUrN5vfvVHuhp7x8PxltmWWlbbM4IFyM",
"d":"870MB6gfuTJ4HtUnUvYMyJpr5eUZNP4Bk43bVdj3eAE",
"use":"enc",
diff --git a/identity-server/clients/src/ConsoleResourceIndicators/SystemBrowser.cs b/identity-server/clients/src/ConsoleResourceIndicators/SystemBrowser.cs
index 1effbbfc4..32c0af430 100644
--- a/identity-server/clients/src/ConsoleResourceIndicators/SystemBrowser.cs
+++ b/identity-server/clients/src/ConsoleResourceIndicators/SystemBrowser.cs
@@ -37,7 +37,7 @@ public class SystemBrowser : IBrowser
return port;
}
- public async Task InvokeAsync(BrowserOptions options, CT ct = default)
+ public async Task InvokeAsync(BrowserOptions options, Ct ct = default)
{
using (var listener = new LoopbackHttpListener(Port, _path))
{
diff --git a/identity-server/clients/src/MvcDPoP/TestHandler.cs b/identity-server/clients/src/MvcDPoP/TestHandler.cs
index cef0d4180..3f10942a9 100644
--- a/identity-server/clients/src/MvcDPoP/TestHandler.cs
+++ b/identity-server/clients/src/MvcDPoP/TestHandler.cs
@@ -8,7 +8,7 @@ public class TestHandler : DelegatingHandler
private readonly ILogger _logger;
public TestHandler(ILogger logger) => _logger = logger;
- protected override async Task SendAsync(HttpRequestMessage request, CT ct)
+ protected override async Task SendAsync(HttpRequestMessage request, Ct ct)
{
var response = await base.SendAsync(request, ct);
if (response.Headers.Contains("WWW-Authenticate"))
diff --git a/identity-server/clients/src/MvcJarJwt/ClientAssertionService.cs b/identity-server/clients/src/MvcJarJwt/ClientAssertionService.cs
index 05bd8331a..273ea9912 100644
--- a/identity-server/clients/src/MvcJarJwt/ClientAssertionService.cs
+++ b/identity-server/clients/src/MvcJarJwt/ClientAssertionService.cs
@@ -10,7 +10,7 @@ namespace MvcJarJwt;
public class ClientAssertionService(AssertionService assertionService) : IClientAssertionService
{
public Task GetClientAssertionAsync(ClientCredentialsClientName? clientName = null, TokenRequestParameters parameters = null,
- CT ct = new())
+ Ct ct = new())
{
var assertion = new ClientAssertion
{
diff --git a/identity-server/clients/src/MvcJarUriJwt/ClientAssertionService.cs b/identity-server/clients/src/MvcJarUriJwt/ClientAssertionService.cs
index 6ed71961c..587ddc2ef 100644
--- a/identity-server/clients/src/MvcJarUriJwt/ClientAssertionService.cs
+++ b/identity-server/clients/src/MvcJarUriJwt/ClientAssertionService.cs
@@ -11,7 +11,7 @@ public class ClientAssertionService(AssertionService assertionService) : IClient
{
public Task GetClientAssertionAsync(ClientCredentialsClientName? clientName = null,
TokenRequestParameters parameters = null,
- CT ct = new())
+ Ct ct = new())
{
var assertion = new ClientAssertion
{
diff --git a/identity-server/clients/src/Web/ClientAssertionService.cs b/identity-server/clients/src/Web/ClientAssertionService.cs
index 9338732ed..7efcbfe07 100644
--- a/identity-server/clients/src/Web/ClientAssertionService.cs
+++ b/identity-server/clients/src/Web/ClientAssertionService.cs
@@ -10,7 +10,7 @@ namespace Web;
public class ClientAssertionService(AssertionService assertionService) : IClientAssertionService
{
public Task GetClientAssertionAsync(ClientCredentialsClientName? clientName = null, TokenRequestParameters? parameters = null,
- CT ct = new CT())
+ Ct ct = new Ct())
{
var assertion = new ClientAssertion
{
diff --git a/identity-server/clients/src/WindowsConsoleSystemBrowser/CallbackManager.cs b/identity-server/clients/src/WindowsConsoleSystemBrowser/CallbackManager.cs
index 244ffd45d..df11bf1f1 100644
--- a/identity-server/clients/src/WindowsConsoleSystemBrowser/CallbackManager.cs
+++ b/identity-server/clients/src/WindowsConsoleSystemBrowser/CallbackManager.cs
@@ -26,9 +26,9 @@ internal class CallbackManager
}
}
- public async Task RunServer(CT? token = null)
+ public async Task RunServer(Ct? token = null)
{
- token = CT.None;
+ token = Ct.None;
await using var server = new NamedPipeServerStream(_name, PipeDirection.In);
await server.WaitForConnectionAsync(token.Value);
diff --git a/identity-server/hosts/EntityFramework10/TestOperationalStoreNotification.cs b/identity-server/hosts/EntityFramework10/TestOperationalStoreNotification.cs
index 142fc3b05..e3a80f3e0 100644
--- a/identity-server/hosts/EntityFramework10/TestOperationalStoreNotification.cs
+++ b/identity-server/hosts/EntityFramework10/TestOperationalStoreNotification.cs
@@ -12,7 +12,7 @@ public class TestOperationalStoreNotification : IOperationalStoreNotification
{
public TestOperationalStoreNotification() => Console.WriteLine("ctor");
- public Task PersistedGrantsRemovedAsync(IEnumerable persistedGrants, CT ct)
+ public Task PersistedGrantsRemovedAsync(IEnumerable persistedGrants, Ct ct)
{
ArgumentNullException.ThrowIfNull(persistedGrants);
foreach (var grant in persistedGrants)
@@ -22,7 +22,7 @@ public class TestOperationalStoreNotification : IOperationalStoreNotification
return Task.CompletedTask;
}
- public Task DeviceCodesRemovedAsync(IEnumerable deviceCodes, CT ct)
+ public Task DeviceCodesRemovedAsync(IEnumerable deviceCodes, Ct ct)
{
ArgumentNullException.ThrowIfNull(deviceCodes);
foreach (var deviceCode in deviceCodes)
@@ -32,7 +32,7 @@ public class TestOperationalStoreNotification : IOperationalStoreNotification
return Task.CompletedTask;
}
- public Task ServerSideSessionsRemovedAsync(IEnumerable userSessions, CT ct = default)
+ public Task ServerSideSessionsRemovedAsync(IEnumerable userSessions, Ct ct = default)
{
ArgumentNullException.ThrowIfNull(userSessions);
foreach (var session in userSessions)
diff --git a/identity-server/hosts/Shared/Configuration/ClientsConsole.cs b/identity-server/hosts/Shared/Configuration/ClientsConsole.cs
index c60e02fd4..e176efa47 100644
--- a/identity-server/hosts/Shared/Configuration/ClientsConsole.cs
+++ b/identity-server/hosts/Shared/Configuration/ClientsConsole.cs
@@ -134,7 +134,7 @@ public static class ClientsConsole
{
"kty":"EC",
"crv":"P-256",
- "x":"MKBCTNIcKUSDii11ySs3526iDZ8AiTo7Tu6KPAqv7D4",
+ "x":"MKBCtNIcKUSDii11ySs3526iDZ8AiTo7Tu6KPAqv7D4",
"y":"4Etl6SRW2YiLUrN5vfvVHuhp7x8PxltmWWlbbM4IFyM",
"use":"enc",
"kid":"1"
diff --git a/identity-server/hosts/Shared/Customization/CustomClientRegistrationProcessor.cs b/identity-server/hosts/Shared/Customization/CustomClientRegistrationProcessor.cs
index 608a8fb92..633170673 100644
--- a/identity-server/hosts/Shared/Customization/CustomClientRegistrationProcessor.cs
+++ b/identity-server/hosts/Shared/Customization/CustomClientRegistrationProcessor.cs
@@ -18,7 +18,7 @@ public sealed class CustomClientRegistrationProcessor(
IClientStore clientStore) : DynamicClientRegistrationRequestProcessor(options, dcrStore)
{
- protected override async Task AddClientId(DynamicClientRegistrationContext context, CT ct)
+ protected override async Task AddClientId(DynamicClientRegistrationContext context, Ct ct)
{
if (context.Request.Extensions.TryGetValue("client_id", out var clientIdParameter))
{
diff --git a/identity-server/hosts/Shared/Customization/DiscoveryHealthCheck.cs b/identity-server/hosts/Shared/Customization/DiscoveryHealthCheck.cs
index f3acc850b..ea973bb8d 100644
--- a/identity-server/hosts/Shared/Customization/DiscoveryHealthCheck.cs
+++ b/identity-server/hosts/Shared/Customization/DiscoveryHealthCheck.cs
@@ -18,7 +18,7 @@ public class DiscoveryHealthCheck : IHealthCheck
_httpContextAccessor = httpContextAccessor;
}
- public async Task CheckHealthAsync(HealthCheckContext context, CT ct = default)
+ public async Task CheckHealthAsync(HealthCheckContext context, Ct ct = default)
{
ArgumentNullException.ThrowIfNull(context);
try
@@ -55,7 +55,7 @@ public class DiscoveryKeysHealthCheck : IHealthCheck
_httpContextAccessor = httpContextAccessor;
}
- public async Task CheckHealthAsync(HealthCheckContext context, CT ct = default)
+ public async Task CheckHealthAsync(HealthCheckContext context, Ct ct = default)
{
ArgumentNullException.ThrowIfNull(context);
try
diff --git a/identity-server/hosts/Shared/Customization/ExtensionGrantValidator.cs b/identity-server/hosts/Shared/Customization/ExtensionGrantValidator.cs
index 0b3b570ce..b3f818737 100644
--- a/identity-server/hosts/Shared/Customization/ExtensionGrantValidator.cs
+++ b/identity-server/hosts/Shared/Customization/ExtensionGrantValidator.cs
@@ -8,7 +8,7 @@ namespace Duende.IdentityServer.Hosts.Shared.Customization;
public class ExtensionGrantValidator : IExtensionGrantValidator
{
- public Task ValidateAsync(ExtensionGrantValidationContext context, CT ct)
+ public Task ValidateAsync(ExtensionGrantValidationContext context, Ct ct)
{
ArgumentNullException.ThrowIfNull(context);
var credential = context.Request.Raw.Get("custom_credential");
diff --git a/identity-server/hosts/Shared/Customization/HostProfileService.cs b/identity-server/hosts/Shared/Customization/HostProfileService.cs
index f9f7dc4ee..1508e0761 100644
--- a/identity-server/hosts/Shared/Customization/HostProfileService.cs
+++ b/identity-server/hosts/Shared/Customization/HostProfileService.cs
@@ -9,7 +9,7 @@ namespace Duende.IdentityServer.Hosts.Shared.Customization;
public class HostProfileService(TestUserStore users, ILogger logger) : TestUserProfileService(users, logger)
{
- public override async Task GetProfileDataAsync(ProfileDataRequestContext context, CT ct)
+ public override async Task GetProfileDataAsync(ProfileDataRequestContext context, Ct ct)
{
ArgumentNullException.ThrowIfNull(context);
await base.GetProfileDataAsync(context, ct);
diff --git a/identity-server/hosts/Shared/Customization/NoSubjectExtensionGrantValidator.cs b/identity-server/hosts/Shared/Customization/NoSubjectExtensionGrantValidator.cs
index 0a39ecd94..5261a641d 100644
--- a/identity-server/hosts/Shared/Customization/NoSubjectExtensionGrantValidator.cs
+++ b/identity-server/hosts/Shared/Customization/NoSubjectExtensionGrantValidator.cs
@@ -8,7 +8,7 @@ namespace Duende.IdentityServer.Hosts.Shared.Customization;
public class NoSubjectExtensionGrantValidator : IExtensionGrantValidator
{
- public Task ValidateAsync(ExtensionGrantValidationContext context, CT ct)
+ public Task ValidateAsync(ExtensionGrantValidationContext context, Ct ct)
{
ArgumentNullException.ThrowIfNull(context);
var credential = context.Request.Raw.Get("custom_credential");
diff --git a/identity-server/hosts/Shared/Customization/ParameterizedScopeTokenRequestValidator.cs b/identity-server/hosts/Shared/Customization/ParameterizedScopeTokenRequestValidator.cs
index 6ee2a07e8..d10677291 100644
--- a/identity-server/hosts/Shared/Customization/ParameterizedScopeTokenRequestValidator.cs
+++ b/identity-server/hosts/Shared/Customization/ParameterizedScopeTokenRequestValidator.cs
@@ -8,7 +8,7 @@ namespace Duende.IdentityServer.Hosts.Shared.Customization;
public class ParameterizedScopeTokenRequestValidator : ICustomTokenRequestValidator
{
- public Task ValidateAsync(CustomTokenRequestValidationContext context, CT ct)
+ public Task ValidateAsync(CustomTokenRequestValidationContext context, Ct ct)
{
ArgumentNullException.ThrowIfNull(context);
var transaction = context.Result?.ValidatedRequest.ValidatedResources.ParsedScopes.FirstOrDefault(x => x.ParsedName == "transaction");
diff --git a/identity-server/hosts/UI/AspNetIdentity/Pages/Account/Login/Index.cshtml.cs b/identity-server/hosts/UI/AspNetIdentity/Pages/Account/Login/Index.cshtml.cs
index 99880c15a..7db379d98 100644
--- a/identity-server/hosts/UI/AspNetIdentity/Pages/Account/Login/Index.cshtml.cs
+++ b/identity-server/hosts/UI/AspNetIdentity/Pages/Account/Login/Index.cshtml.cs
@@ -151,7 +151,7 @@ public class Index : PageModel
return Page();
}
- private async Task BuildModelAsync(string? returnUrl, CT ct)
+ private async Task BuildModelAsync(string? returnUrl, Ct ct)
{
Input = new InputModel
{
diff --git a/identity-server/hosts/UI/Main/Pages/Account/Login/Index.cshtml.cs b/identity-server/hosts/UI/Main/Pages/Account/Login/Index.cshtml.cs
index 29bf3615a..e104d71a6 100644
--- a/identity-server/hosts/UI/Main/Pages/Account/Login/Index.cshtml.cs
+++ b/identity-server/hosts/UI/Main/Pages/Account/Login/Index.cshtml.cs
@@ -161,7 +161,7 @@ public class Index : PageModel
return Page();
}
- private async Task BuildModelAsync(string? returnUrl, CT ct)
+ private async Task BuildModelAsync(string? returnUrl, Ct ct)
{
Input = new InputModel
{
diff --git a/identity-server/src/AspNetIdentity/DefaultSessionClaimsFilter.cs b/identity-server/src/AspNetIdentity/DefaultSessionClaimsFilter.cs
index 1856f6d8a..fca0c5c6c 100644
--- a/identity-server/src/AspNetIdentity/DefaultSessionClaimsFilter.cs
+++ b/identity-server/src/AspNetIdentity/DefaultSessionClaimsFilter.cs
@@ -9,7 +9,7 @@ namespace Duende.IdentityServer.AspNetIdentity;
public class DefaultSessionClaimsFilter : ISessionClaimsFilter
{
///
- public Task> FilterToSessionClaimsAsync(SecurityStampRefreshingPrincipalContext context, CT ct)
+ public Task> FilterToSessionClaimsAsync(SecurityStampRefreshingPrincipalContext context, Ct ct)
{
var newClaimTypes = context.NewPrincipal.Claims.Select(x => x.Type).ToArray();
var currentClaimsToKeep = context.CurrentPrincipal.Claims.Where(x => !newClaimTypes.Contains(x.Type)).ToArray();
diff --git a/identity-server/src/AspNetIdentity/ISessionClaimsFilter.cs b/identity-server/src/AspNetIdentity/ISessionClaimsFilter.cs
index 43a2b76bd..b2fa59acf 100644
--- a/identity-server/src/AspNetIdentity/ISessionClaimsFilter.cs
+++ b/identity-server/src/AspNetIdentity/ISessionClaimsFilter.cs
@@ -18,5 +18,5 @@ public interface ISessionClaimsFilter
/// in the call to .
/// The cancellation token.
/// The claims of the ClaimsPrincipal which should be persisted for the session.
- public Task> FilterToSessionClaimsAsync(SecurityStampRefreshingPrincipalContext context, CT ct);
+ public Task> FilterToSessionClaimsAsync(SecurityStampRefreshingPrincipalContext context, Ct ct);
}
diff --git a/identity-server/src/AspNetIdentity/ProfileService.cs b/identity-server/src/AspNetIdentity/ProfileService.cs
index b48bea5bb..834f28650 100644
--- a/identity-server/src/AspNetIdentity/ProfileService.cs
+++ b/identity-server/src/AspNetIdentity/ProfileService.cs
@@ -67,7 +67,7 @@ public class ProfileService : IProfileService
/// The context.
/// The cancellation token.
///
- public virtual async Task GetProfileDataAsync(ProfileDataRequestContext context, CT ct)
+ public virtual async Task GetProfileDataAsync(ProfileDataRequestContext context, Ct ct)
{
var sub = context.Subject?.GetSubjectId();
if (sub == null)
@@ -128,7 +128,7 @@ public class ProfileService : IProfileService
/// The context.
/// The cancellation token.
///
- public virtual async Task IsActiveAsync(IsActiveContext context, CT ct)
+ public virtual async Task IsActiveAsync(IsActiveContext context, Ct ct)
{
var sub = context.Subject?.GetSubjectId();
if (sub == null)
diff --git a/identity-server/src/AspNetIdentity/ResourceOwnerPasswordValidator.cs b/identity-server/src/AspNetIdentity/ResourceOwnerPasswordValidator.cs
index 5260eda99..6d686f11d 100644
--- a/identity-server/src/AspNetIdentity/ResourceOwnerPasswordValidator.cs
+++ b/identity-server/src/AspNetIdentity/ResourceOwnerPasswordValidator.cs
@@ -39,7 +39,7 @@ public class ResourceOwnerPasswordValidator : IResourceOwnerPasswordValid
}
///
- public virtual async Task ValidateAsync(ResourceOwnerPasswordValidationContext context, CT ct)
+ public virtual async Task ValidateAsync(ResourceOwnerPasswordValidationContext context, Ct ct)
{
var user = await _userManager.FindByNameAsync(context.UserName);
if (user != null)
diff --git a/identity-server/src/Configuration.EntityFramework/ClientConfigurationStore.cs b/identity-server/src/Configuration.EntityFramework/ClientConfigurationStore.cs
index 82da46636..0319cdd61 100644
--- a/identity-server/src/Configuration.EntityFramework/ClientConfigurationStore.cs
+++ b/identity-server/src/Configuration.EntityFramework/ClientConfigurationStore.cs
@@ -38,7 +38,7 @@ public class ClientConfigurationStore : IClientConfigurationStore
}
///
- public async Task AddAsync(Client client, CT ct)
+ public async Task AddAsync(Client client, Ct ct)
{
Logger.LogDebug("Adding client {ClientId} to configuration store", client.ClientId);
DbContext.Clients.Add(client.ToEntity());
diff --git a/identity-server/src/Configuration/RequestProcessing/DynamicClientRegistrationRequestProcessor.cs b/identity-server/src/Configuration/RequestProcessing/DynamicClientRegistrationRequestProcessor.cs
index fe778bea8..2371eff43 100644
--- a/identity-server/src/Configuration/RequestProcessing/DynamicClientRegistrationRequestProcessor.cs
+++ b/identity-server/src/Configuration/RequestProcessing/DynamicClientRegistrationRequestProcessor.cs
@@ -39,7 +39,7 @@ public class DynamicClientRegistrationRequestProcessor : IDynamicClientRegistrat
///
public virtual async Task ProcessAsync(
- DynamicClientRegistrationContext context, CT ct)
+ DynamicClientRegistrationContext context, Ct ct)
{
var clientIdResult = await AddClientId(context, ct);
if (clientIdResult is DynamicClientRegistrationError clientIdFailure)
@@ -136,7 +136,7 @@ public class DynamicClientRegistrationRequestProcessor : IDynamicClientRegistrat
/// The cancellation token.
///
protected virtual Task AddClientId(
- DynamicClientRegistrationContext context, CT ct)
+ DynamicClientRegistrationContext context, Ct ct)
{
context.Client.ClientId = CryptoRandom.CreateUniqueId();
return StepResult.Success();
diff --git a/identity-server/src/Configuration/RequestProcessing/IDynamicClientRegistrationRequestProcessor.cs b/identity-server/src/Configuration/RequestProcessing/IDynamicClientRegistrationRequestProcessor.cs
index e65ef9a66..ed92d50d4 100644
--- a/identity-server/src/Configuration/RequestProcessing/IDynamicClientRegistrationRequestProcessor.cs
+++ b/identity-server/src/Configuration/RequestProcessing/IDynamicClientRegistrationRequestProcessor.cs
@@ -22,5 +22,5 @@ public interface IDynamicClientRegistrationRequestProcessor
/// properties of the client that are not specified in the request, and
/// storing the new client in the .
///
- Task ProcessAsync(DynamicClientRegistrationContext validatedRequest, CT ct);
+ Task ProcessAsync(DynamicClientRegistrationContext validatedRequest, Ct ct);
}
diff --git a/identity-server/src/Configuration/ResponseGeneration/DynamicClientRegistrationResponseGenerator.cs b/identity-server/src/Configuration/ResponseGeneration/DynamicClientRegistrationResponseGenerator.cs
index 7091b3849..dfe62d035 100644
--- a/identity-server/src/Configuration/ResponseGeneration/DynamicClientRegistrationResponseGenerator.cs
+++ b/identity-server/src/Configuration/ResponseGeneration/DynamicClientRegistrationResponseGenerator.cs
@@ -31,7 +31,7 @@ public class DynamicClientRegistrationResponseGenerator : IDynamicClientRegistra
public DynamicClientRegistrationResponseGenerator(ILogger logger) => Logger = logger;
///
- public virtual async Task WriteResponse(HttpContext context, int statusCode, T response, CT ct)
+ public virtual async Task WriteResponse(HttpContext context, int statusCode, T response, Ct ct)
where T : IDynamicClientRegistrationResponse
{
context.Response.StatusCode = statusCode;
@@ -39,7 +39,7 @@ public class DynamicClientRegistrationResponseGenerator : IDynamicClientRegistra
}
///
- public virtual Task WriteContentTypeError(HttpContext context, CT ct)
+ public virtual Task WriteContentTypeError(HttpContext context, Ct ct)
{
Logger.LogDebug("Invalid content type in dynamic client registration request");
context.Response.StatusCode = StatusCodes.Status415UnsupportedMediaType;
@@ -47,7 +47,7 @@ public class DynamicClientRegistrationResponseGenerator : IDynamicClientRegistra
}
///
- public virtual async Task WriteBadRequestError(HttpContext context, CT ct) =>
+ public virtual async Task WriteBadRequestError(HttpContext context, Ct ct) =>
await WriteResponse(context, StatusCodes.Status400BadRequest,
new DynamicClientRegistrationError(
DynamicClientRegistrationErrors.InvalidClientMetadata,
@@ -56,11 +56,11 @@ public class DynamicClientRegistrationResponseGenerator : IDynamicClientRegistra
);
///
- public virtual async Task WriteError(HttpContext context, DynamicClientRegistrationError error, CT ct) =>
+ public virtual async Task WriteError(HttpContext context, DynamicClientRegistrationError error, Ct ct) =>
await WriteResponse(context, StatusCodes.Status400BadRequest, error, ct);
///
- public virtual async Task WriteSuccessResponse(HttpContext context, DynamicClientRegistrationResponse response, CT ct) =>
+ public virtual async Task WriteSuccessResponse(HttpContext context, DynamicClientRegistrationResponse response, Ct ct) =>
await WriteResponse(context, StatusCodes.Status201Created, response, ct);
}
diff --git a/identity-server/src/Configuration/ResponseGeneration/IDynamicClientRegistrationResponseGenerator.cs b/identity-server/src/Configuration/ResponseGeneration/IDynamicClientRegistrationResponseGenerator.cs
index cc1fd6cb8..5b1e6b3b9 100644
--- a/identity-server/src/Configuration/ResponseGeneration/IDynamicClientRegistrationResponseGenerator.cs
+++ b/identity-server/src/Configuration/ResponseGeneration/IDynamicClientRegistrationResponseGenerator.cs
@@ -21,7 +21,7 @@ public interface IDynamicClientRegistrationResponseGenerator
/// The status code to set in the response.
/// The response object to write to the response.
/// The cancellation token.
- Task WriteResponse(HttpContext context, int statusCode, T response, CT ct)
+ Task WriteResponse(HttpContext context, int statusCode, T response, Ct ct)
where T : IDynamicClientRegistrationResponse;
///
@@ -29,14 +29,14 @@ public interface IDynamicClientRegistrationResponseGenerator
///
/// The HTTP context to write the error to.
/// The cancellation token.
- Task WriteContentTypeError(HttpContext response, CT ct);
+ Task WriteContentTypeError(HttpContext response, Ct ct);
///
/// Writes a bad request error to the HTTP context.
///
/// The HTTP context to write the error to.
/// The cancellation token.
- Task WriteBadRequestError(HttpContext context, CT ct);
+ Task WriteBadRequestError(HttpContext context, Ct ct);
///
/// Writes a success response to the HTTP context.
@@ -44,7 +44,7 @@ public interface IDynamicClientRegistrationResponseGenerator
/// The HTTP context to write the response to.
/// The dynamic client registration response.
/// The cancellation token.
- Task WriteSuccessResponse(HttpContext context, DynamicClientRegistrationResponse response, CT ct);
+ Task WriteSuccessResponse(HttpContext context, DynamicClientRegistrationResponse response, Ct ct);
///
/// Writes a validation or processing step's error to the HTTP context.
@@ -52,5 +52,5 @@ public interface IDynamicClientRegistrationResponseGenerator
/// The HTTP context to write the error to.
/// The dynamic client registration validation error.
/// The cancellation token.
- Task WriteError(HttpContext context, DynamicClientRegistrationError error, CT ct);
+ Task WriteError(HttpContext context, DynamicClientRegistrationError error, Ct ct);
}
diff --git a/identity-server/src/Configuration/Stores/IClientConfigurationStore.cs b/identity-server/src/Configuration/Stores/IClientConfigurationStore.cs
index 3ab0b3536..5d8bc9839 100644
--- a/identity-server/src/Configuration/Stores/IClientConfigurationStore.cs
+++ b/identity-server/src/Configuration/Stores/IClientConfigurationStore.cs
@@ -16,5 +16,5 @@ public interface IClientConfigurationStore
///
/// The client to add to the store
/// The cancellation token.
- Task AddAsync(Client client, CT ct);
+ Task AddAsync(Client client, Ct ct);
}
diff --git a/identity-server/src/Configuration/Stores/InMemoryClientConfigurationStore.cs b/identity-server/src/Configuration/Stores/InMemoryClientConfigurationStore.cs
index 19c2feddf..66bc0005c 100644
--- a/identity-server/src/Configuration/Stores/InMemoryClientConfigurationStore.cs
+++ b/identity-server/src/Configuration/Stores/InMemoryClientConfigurationStore.cs
@@ -24,7 +24,7 @@ public class InMemoryClientConfigurationStore : IClientConfigurationStore
/// registered in the DI system as an ICollection.
public InMemoryClientConfigurationStore(ICollection clients) => _clients = clients;
///
- public Task AddAsync(Client client, CT ct)
+ public Task AddAsync(Client client, Ct ct)
{
if (_clients.Select(c => c.ClientId).Contains(client.ClientId))
{
diff --git a/identity-server/src/Configuration/Validation/DynamicClientRegistration/DynamicClientRegistrationValidator.cs b/identity-server/src/Configuration/Validation/DynamicClientRegistration/DynamicClientRegistrationValidator.cs
index 8d882713d..0f69ddf21 100644
--- a/identity-server/src/Configuration/Validation/DynamicClientRegistration/DynamicClientRegistrationValidator.cs
+++ b/identity-server/src/Configuration/Validation/DynamicClientRegistration/DynamicClientRegistrationValidator.cs
@@ -27,7 +27,7 @@ public class DynamicClientRegistrationValidator : IDynamicClientRegistrationVali
ILogger logger) => Logger = logger;
///
- public async Task ValidateAsync(DynamicClientRegistrationContext context, CT ct)
+ public async Task ValidateAsync(DynamicClientRegistrationContext context, Ct ct)
{
var result = await ValidateSoftwareStatementAsync(context, ct);
if (result is DynamicClientRegistrationError softwareStatementValidation)
@@ -121,7 +121,7 @@ public class DynamicClientRegistrationValidator : IDynamicClientRegistrationVali
/// The cancellation token.
/// A task that returns an , which either
/// represents that this step succeeded or failed.
- protected virtual Task SetGrantTypesAsync(DynamicClientRegistrationContext context, CT ct)
+ protected virtual Task SetGrantTypesAsync(DynamicClientRegistrationContext context, Ct ct)
{
if (context.Request.GrantTypes.Count == 0)
{
@@ -222,7 +222,7 @@ public class DynamicClientRegistrationValidator : IDynamicClientRegistrationVali
/// The cancellation token.
/// A task that returns an , which either
/// represents that this step succeeded or failed.
- protected virtual Task SetRedirectUrisAsync(DynamicClientRegistrationContext context, CT ct)
+ protected virtual Task SetRedirectUrisAsync(DynamicClientRegistrationContext context, Ct ct)
{
if (context.Client.AllowedGrantTypes.Contains(GrantType.AuthorizationCode))
{
@@ -270,7 +270,7 @@ public class DynamicClientRegistrationValidator : IDynamicClientRegistrationVali
/// The cancellation token.
/// A task that returns an , which either
/// represents that this step succeeded or failed.
- protected virtual Task SetScopesAsync(DynamicClientRegistrationContext context, CT ct)
+ protected virtual Task SetScopesAsync(DynamicClientRegistrationContext context, Ct ct)
{
if (string.IsNullOrEmpty(context.Request.Scope))
{
@@ -305,7 +305,7 @@ public class DynamicClientRegistrationValidator : IDynamicClientRegistrationVali
/// The cancellation token.
/// A task that returns an , which either
/// represents that this step succeeded or failed.
- protected virtual Task SetDefaultScopes(DynamicClientRegistrationContext context, CT ct)
+ protected virtual Task SetDefaultScopes(DynamicClientRegistrationContext context, Ct ct)
{
Logger.LogDebug("No scopes requested for dynamic client registration, and no default scope behavior implemented. To set default scopes, extend the DynamicClientRegistrationValidator and override the SetDefaultScopes method.");
return StepResult.Success();
@@ -321,7 +321,7 @@ public class DynamicClientRegistrationValidator : IDynamicClientRegistrationVali
/// The cancellation token.
/// A task that returns an , which either
/// represents that this step succeeded or failed.
- protected virtual Task SetSecretsAsync(DynamicClientRegistrationContext context, CT ct)
+ protected virtual Task SetSecretsAsync(DynamicClientRegistrationContext context, Ct ct)
{
if (context.Request.JwksUri is not null && context.Request.Jwks is not null)
{
@@ -406,7 +406,7 @@ public class DynamicClientRegistrationValidator : IDynamicClientRegistrationVali
/// The cancellation token.
/// A task that returns an , which either
/// represents that this step succeeded or failed.
- protected virtual Task SetClientNameAsync(DynamicClientRegistrationContext context, CT ct)
+ protected virtual Task SetClientNameAsync(DynamicClientRegistrationContext context, Ct ct)
{
context.Client.ClientName = context.Request?.ClientName;
return StepResult.Success();
@@ -426,7 +426,7 @@ public class DynamicClientRegistrationValidator : IDynamicClientRegistrationVali
/// The cancellation token.
/// A task that returns an , which either
/// represents that this step succeeded or failed.
- protected virtual Task SetLogoutParametersAsync(DynamicClientRegistrationContext context, CT ct)
+ protected virtual Task SetLogoutParametersAsync(DynamicClientRegistrationContext context, Ct ct)
{
context.Client.PostLogoutRedirectUris = context.Request.PostLogoutRedirectUris?.Select(uri => uri.ToString()).ToList() ?? new List();
context.Client.FrontChannelLogoutUri = context.Request.FrontChannelLogoutUri?.AbsoluteUri;
@@ -448,7 +448,7 @@ public class DynamicClientRegistrationValidator : IDynamicClientRegistrationVali
/// The cancellation token.
/// A task that returns an , which either
/// represents that this step succeeded or failed.
- protected virtual Task SetMaxAgeAsync(DynamicClientRegistrationContext context, CT ct)
+ protected virtual Task SetMaxAgeAsync(DynamicClientRegistrationContext context, Ct ct)
{
if (context.Request.DefaultMaxAge.HasValue)
{
@@ -476,7 +476,7 @@ public class DynamicClientRegistrationValidator : IDynamicClientRegistrationVali
/// The cancellation token.
/// A task that returns an , which either
/// represents that this step succeeded or failed.
- protected virtual Task ValidateSoftwareStatementAsync(DynamicClientRegistrationContext context, CT ct) => StepResult.Success();
+ protected virtual Task ValidateSoftwareStatementAsync(DynamicClientRegistrationContext context, Ct ct) => StepResult.Success();
///
/// Validates the requested client parameters related to public clients and
@@ -491,7 +491,7 @@ public class DynamicClientRegistrationValidator : IDynamicClientRegistrationVali
/// The cancellation token.
/// A task that returns an , which either
/// represents that this step succeeded or failed.
- protected virtual Task SetPublicClientProperties(DynamicClientRegistrationContext context, CT ct)
+ protected virtual Task SetPublicClientProperties(DynamicClientRegistrationContext context, Ct ct)
{
context.Client.AllowedCorsOrigins = context.Request.AllowedCorsOrigins ?? new();
if (context.Request.RequireClientSecret.HasValue)
@@ -519,7 +519,7 @@ public class DynamicClientRegistrationValidator : IDynamicClientRegistrationVali
/// The cancellation token.
/// A task that returns an , which either
/// represents that this step succeeded or failed.
- protected virtual Task SetAccessTokenProperties(DynamicClientRegistrationContext context, CT ct)
+ protected virtual Task SetAccessTokenProperties(DynamicClientRegistrationContext context, Ct ct)
{
if (context.Request.AccessTokenType != null)
{
@@ -554,7 +554,7 @@ public class DynamicClientRegistrationValidator : IDynamicClientRegistrationVali
/// The cancellation token.
/// A task that returns an , which either
/// represents that this step succeeded or failed.
- protected virtual Task SetIdTokenProperties(DynamicClientRegistrationContext context, CT ct)
+ protected virtual Task SetIdTokenProperties(DynamicClientRegistrationContext context, Ct ct)
{
if (context.Request.IdentityTokenLifetime.HasValue)
{
@@ -582,7 +582,7 @@ public class DynamicClientRegistrationValidator : IDynamicClientRegistrationVali
/// The cancellation token.
/// A task that returns an , which either
/// represents that this step succeeded or failed.
- protected virtual Task SetServerSideSessionProperties(DynamicClientRegistrationContext context, CT ct)
+ protected virtual Task SetServerSideSessionProperties(DynamicClientRegistrationContext context, Ct ct)
{
if (context.Request.CoordinateLifetimeWithUserSession.HasValue)
{
@@ -603,7 +603,7 @@ public class DynamicClientRegistrationValidator : IDynamicClientRegistrationVali
/// The cancellation token.
/// A task that returns an , which either
/// represents that this step succeeded or failed.
- protected virtual Task SetUserInterfaceProperties(DynamicClientRegistrationContext context, CT ct)
+ protected virtual Task SetUserInterfaceProperties(DynamicClientRegistrationContext context, Ct ct)
{
// Misc Uris
context.Client.LogoUri = context.Request.LogoUri?.ToString();
diff --git a/identity-server/src/Configuration/Validation/DynamicClientRegistration/IDynamicClientRegistrationValidator.cs b/identity-server/src/Configuration/Validation/DynamicClientRegistration/IDynamicClientRegistrationValidator.cs
index 008cef971..cf8ae04c6 100644
--- a/identity-server/src/Configuration/Validation/DynamicClientRegistration/IDynamicClientRegistrationValidator.cs
+++ b/identity-server/src/Configuration/Validation/DynamicClientRegistration/IDynamicClientRegistrationValidator.cs
@@ -20,5 +20,5 @@ public interface IDynamicClientRegistrationValidator
/// A task that returns an , which either
/// indicates success or failure.
- Task ValidateAsync(DynamicClientRegistrationContext context, CT ct);
+ Task ValidateAsync(DynamicClientRegistrationContext context, Ct ct);
}
diff --git a/identity-server/src/EntityFramework.Storage/Extensions/DbContextExtensions.cs b/identity-server/src/EntityFramework.Storage/Extensions/DbContextExtensions.cs
index 9728d56aa..c3cc37209 100644
--- a/identity-server/src/EntityFramework.Storage/Extensions/DbContextExtensions.cs
+++ b/identity-server/src/EntityFramework.Storage/Extensions/DbContextExtensions.cs
@@ -18,7 +18,7 @@ public static class DbContextExtensions
///
/// Saves changes and handles concurrency exceptions.
///
- public static async Task> SaveChangesWithConcurrencyCheckAsync(this IPersistedGrantDbContext context, ILogger logger, CT ct)
+ public static async Task> SaveChangesWithConcurrencyCheckAsync(this IPersistedGrantDbContext context, ILogger logger, Ct ct)
where T : class
{
var list = new List();
diff --git a/identity-server/src/EntityFramework.Storage/Interfaces/IConfigurationDbContext.cs b/identity-server/src/EntityFramework.Storage/Interfaces/IConfigurationDbContext.cs
index e4efd57fc..710f39681 100644
--- a/identity-server/src/EntityFramework.Storage/Interfaces/IConfigurationDbContext.cs
+++ b/identity-server/src/EntityFramework.Storage/Interfaces/IConfigurationDbContext.cs
@@ -67,7 +67,7 @@ public interface IConfigurationDbContext : IDisposable
/// Saves the changes.
///
///
- Task SaveChangesAsync(CT ct);
+ Task SaveChangesAsync(Ct ct);
// this is here only because of this: https://github.com/DuendeSoftware/IdentityServer/issues/472
// and because Microsoft implements the old API explicitly: https://github.com/dotnet/aspnetcore/blob/v6.0.0-rc.2.21480.10/src/Identity/ApiAuthorization.IdentityServer/src/Data/ApiAuthorizationDbContext.cs
@@ -76,5 +76,5 @@ public interface IConfigurationDbContext : IDisposable
/// Saves the changes.
///
///
- Task SaveChangesAsync() => SaveChangesAsync(CT.None);
+ Task SaveChangesAsync() => SaveChangesAsync(Ct.None);
}
diff --git a/identity-server/src/EntityFramework.Storage/Interfaces/IPersistedGrantDbContext.cs b/identity-server/src/EntityFramework.Storage/Interfaces/IPersistedGrantDbContext.cs
index 9a530e666..7c4d2c51a 100644
--- a/identity-server/src/EntityFramework.Storage/Interfaces/IPersistedGrantDbContext.cs
+++ b/identity-server/src/EntityFramework.Storage/Interfaces/IPersistedGrantDbContext.cs
@@ -59,7 +59,7 @@ public interface IPersistedGrantDbContext : IDisposable
/// Saves the changes.
///
///
- Task SaveChangesAsync(CT ct);
+ Task SaveChangesAsync(Ct ct);
// this is here only because of this: https://github.com/DuendeSoftware/IdentityServer/issues/472
// and because Microsoft implements the old API explicitly: https://github.com/dotnet/aspnetcore/blob/v6.0.0-rc.2.21480.10/src/Identity/ApiAuthorization.IdentityServer/src/Data/ApiAuthorizationDbContext.cs
@@ -68,5 +68,5 @@ public interface IPersistedGrantDbContext : IDisposable
/// Saves the changes.
///
///
- Task SaveChangesAsync() => SaveChangesAsync(CT.None);
+ Task SaveChangesAsync() => SaveChangesAsync(Ct.None);
}
diff --git a/identity-server/src/EntityFramework.Storage/Stores/ClientStore.cs b/identity-server/src/EntityFramework.Storage/Stores/ClientStore.cs
index a3ee20b31..316a62821 100644
--- a/identity-server/src/EntityFramework.Storage/Stores/ClientStore.cs
+++ b/identity-server/src/EntityFramework.Storage/Stores/ClientStore.cs
@@ -47,7 +47,7 @@ public class ClientStore : IClientStore
///
/// The client
///
- public virtual async Task FindClientByIdAsync(string clientId, CT ct)
+ public virtual async Task FindClientByIdAsync(string clientId, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("ClientStore.FindClientById");
activity?.SetTag(Tracing.Properties.ClientId, clientId);
@@ -81,7 +81,7 @@ public class ClientStore : IClientStore
}
///
- public virtual async IAsyncEnumerable GetAllClientsAsync([EnumeratorCancellation] CT ct)
+ public virtual async IAsyncEnumerable GetAllClientsAsync([EnumeratorCancellation] Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("ClientStore.GetAllClients");
diff --git a/identity-server/src/EntityFramework.Storage/Stores/DeviceFlowStore.cs b/identity-server/src/EntityFramework.Storage/Stores/DeviceFlowStore.cs
index 42b527435..f5718288f 100644
--- a/identity-server/src/EntityFramework.Storage/Stores/DeviceFlowStore.cs
+++ b/identity-server/src/EntityFramework.Storage/Stores/DeviceFlowStore.cs
@@ -51,7 +51,7 @@ public class DeviceFlowStore : IDeviceFlowStore
}
///
- public virtual async Task StoreDeviceAuthorizationAsync(string deviceCode, string userCode, DeviceCode data, CT ct)
+ public virtual async Task StoreDeviceAuthorizationAsync(string deviceCode, string userCode, DeviceCode data, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("DeviceFlowStore.StoreDeviceAuthorization");
@@ -61,7 +61,7 @@ public class DeviceFlowStore : IDeviceFlowStore
}
///
- public virtual async Task FindByUserCodeAsync(string userCode, CT ct)
+ public virtual async Task FindByUserCodeAsync(string userCode, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("DeviceFlowStore.FindByUserCode");
@@ -76,7 +76,7 @@ public class DeviceFlowStore : IDeviceFlowStore
}
///
- public virtual async Task FindByDeviceCodeAsync(string deviceCode, CT ct)
+ public virtual async Task FindByDeviceCodeAsync(string deviceCode, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("DeviceFlowStore.FindByDeviceCode");
@@ -91,7 +91,7 @@ public class DeviceFlowStore : IDeviceFlowStore
}
///
- public virtual async Task UpdateByUserCodeAsync(string userCode, DeviceCode data, CT ct)
+ public virtual async Task UpdateByUserCodeAsync(string userCode, DeviceCode data, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("DeviceFlowStore.UpdateByUserCode");
@@ -122,7 +122,7 @@ public class DeviceFlowStore : IDeviceFlowStore
}
///
- public virtual async Task RemoveByDeviceCodeAsync(string deviceCode, CT ct)
+ public virtual async Task RemoveByDeviceCodeAsync(string deviceCode, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("DeviceFlowStore.RemoveByDeviceCode");
diff --git a/identity-server/src/EntityFramework.Storage/Stores/IdentityProviderStore.cs b/identity-server/src/EntityFramework.Storage/Stores/IdentityProviderStore.cs
index a5c48efeb..79f44d2a7 100644
--- a/identity-server/src/EntityFramework.Storage/Stores/IdentityProviderStore.cs
+++ b/identity-server/src/EntityFramework.Storage/Stores/IdentityProviderStore.cs
@@ -40,7 +40,7 @@ public class IdentityProviderStore : IIdentityProviderStore
}
///
- public async Task> GetAllSchemeNamesAsync(CT ct)
+ public async Task> GetAllSchemeNamesAsync(Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("IdentityProviderStore.GetAllSchemeNames");
@@ -55,7 +55,7 @@ public class IdentityProviderStore : IIdentityProviderStore
}
///
- public async Task GetBySchemeAsync(string scheme, CT ct)
+ public async Task GetBySchemeAsync(string scheme, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("IdentityProviderStore.GetByScheme");
activity?.SetTag(Tracing.Properties.Scheme, scheme);
diff --git a/identity-server/src/EntityFramework.Storage/Stores/PersistedGrantStore.cs b/identity-server/src/EntityFramework.Storage/Stores/PersistedGrantStore.cs
index adae13135..91f9ad22f 100644
--- a/identity-server/src/EntityFramework.Storage/Stores/PersistedGrantStore.cs
+++ b/identity-server/src/EntityFramework.Storage/Stores/PersistedGrantStore.cs
@@ -40,7 +40,7 @@ public class PersistedGrantStore : Duende.IdentityServer.Stores.IPersistedGrantS
}
///
- public virtual async Task StoreAsync(Duende.IdentityServer.Models.PersistedGrant token, CT ct)
+ public virtual async Task StoreAsync(Duende.IdentityServer.Models.PersistedGrant token, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("PersistedGrantStore.Store");
@@ -72,7 +72,7 @@ public class PersistedGrantStore : Duende.IdentityServer.Stores.IPersistedGrantS
}
///
- public virtual async Task GetAsync(string key, CT ct)
+ public virtual async Task GetAsync(string key, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("PersistedGrantStore.Get");
@@ -87,7 +87,7 @@ public class PersistedGrantStore : Duende.IdentityServer.Stores.IPersistedGrantS
}
///
- public virtual async Task> GetAllAsync(PersistedGrantFilter filter, CT ct)
+ public virtual async Task> GetAllAsync(PersistedGrantFilter filter, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("PersistedGrantStore.GetAll");
@@ -105,7 +105,7 @@ public class PersistedGrantStore : Duende.IdentityServer.Stores.IPersistedGrantS
}
///
- public virtual async Task RemoveAsync(string key, CT ct)
+ public virtual async Task RemoveAsync(string key, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("PersistedGrantStore.Remove");
@@ -134,7 +134,7 @@ public class PersistedGrantStore : Duende.IdentityServer.Stores.IPersistedGrantS
}
///
- public virtual async Task RemoveAllAsync(PersistedGrantFilter filter, CT ct)
+ public virtual async Task RemoveAllAsync(PersistedGrantFilter filter, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("PersistedGrantStore.RemoveAll");
diff --git a/identity-server/src/EntityFramework.Storage/Stores/PushedAuthorizationRequestStore.cs b/identity-server/src/EntityFramework.Storage/Stores/PushedAuthorizationRequestStore.cs
index 6917fce45..ea1172067 100644
--- a/identity-server/src/EntityFramework.Storage/Stores/PushedAuthorizationRequestStore.cs
+++ b/identity-server/src/EntityFramework.Storage/Stores/PushedAuthorizationRequestStore.cs
@@ -35,7 +35,7 @@ public class PushedAuthorizationRequestStore : IPushedAuthorizationRequestStore
}
///
- public async Task ConsumeByHashAsync(string referenceValueHash, CT ct)
+ public async Task ConsumeByHashAsync(string referenceValueHash, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("PersistedGrantStore.Remove");
Logger.LogDebug("removing {referenceValueHash} pushed authorization from database", referenceValueHash);
@@ -49,7 +49,7 @@ public class PushedAuthorizationRequestStore : IPushedAuthorizationRequestStore
}
///
- public virtual async Task GetByHashAsync(string referenceValueHash, CT ct)
+ public virtual async Task GetByHashAsync(string referenceValueHash, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("PushedAuthorizationRequestStore.Get");
@@ -66,7 +66,7 @@ public class PushedAuthorizationRequestStore : IPushedAuthorizationRequestStore
///
- public virtual async Task StoreAsync(Models.PushedAuthorizationRequest par, CT ct)
+ public virtual async Task StoreAsync(Models.PushedAuthorizationRequest par, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("PushedAuthorizationStore.Store");
diff --git a/identity-server/src/EntityFramework.Storage/Stores/ResourceStore.cs b/identity-server/src/EntityFramework.Storage/Stores/ResourceStore.cs
index 338d6cae7..be024e192 100644
--- a/identity-server/src/EntityFramework.Storage/Stores/ResourceStore.cs
+++ b/identity-server/src/EntityFramework.Storage/Stores/ResourceStore.cs
@@ -46,7 +46,7 @@ public class ResourceStore : IResourceStore
/// The names.
/// The cancellation token.
///
- public virtual async Task> FindApiResourcesByNameAsync(IEnumerable apiResourceNames, CT ct)
+ public virtual async Task> FindApiResourcesByNameAsync(IEnumerable apiResourceNames, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("ResourceStore.FindApiResourcesByName");
activity?.SetTag(Tracing.Properties.ApiResourceNames, apiResourceNames.ToSpaceSeparatedString());
@@ -87,7 +87,7 @@ public class ResourceStore : IResourceStore
///
/// The cancellation token.
///
- public virtual async Task> FindApiResourcesByScopeNameAsync(IEnumerable scopeNames, CT ct)
+ public virtual async Task> FindApiResourcesByScopeNameAsync(IEnumerable scopeNames, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("ResourceStore.FindApiResourcesByScopeName");
activity?.SetTag(Tracing.Properties.ScopeNames, scopeNames.ToSpaceSeparatedString());
@@ -121,7 +121,7 @@ public class ResourceStore : IResourceStore
///
/// The cancellation token.
///
- public virtual async Task> FindIdentityResourcesByScopeNameAsync(IEnumerable scopeNames, CT ct)
+ public virtual async Task> FindIdentityResourcesByScopeNameAsync(IEnumerable scopeNames, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("ResourceStore.FindIdentityResourcesByScopeName");
activity?.SetTag(Tracing.Properties.ScopeNames, scopeNames.ToSpaceSeparatedString());
@@ -152,7 +152,7 @@ public class ResourceStore : IResourceStore
///
/// The cancellation token.
///
- public virtual async Task> FindApiScopesByNameAsync(IEnumerable scopeNames, CT ct)
+ public virtual async Task> FindApiScopesByNameAsync(IEnumerable scopeNames, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("ResourceStore.FindApiScopesByName");
activity?.SetTag(Tracing.Properties.ScopeNames, scopeNames.ToSpaceSeparatedString());
@@ -181,7 +181,7 @@ public class ResourceStore : IResourceStore
/// Gets all resources.
///
///
- public virtual async Task GetAllResourcesAsync(CT ct)
+ public virtual async Task GetAllResourcesAsync(Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("ResourceStore.GetAllResources");
diff --git a/identity-server/src/EntityFramework.Storage/Stores/ServerSideSessionStore.cs b/identity-server/src/EntityFramework.Storage/Stores/ServerSideSessionStore.cs
index 7a987137b..d0ba58394 100644
--- a/identity-server/src/EntityFramework.Storage/Stores/ServerSideSessionStore.cs
+++ b/identity-server/src/EntityFramework.Storage/Stores/ServerSideSessionStore.cs
@@ -42,7 +42,7 @@ public class ServerSideSessionStore : IServerSideSessionStore
///
- public virtual async Task CreateSessionAsync(ServerSideSession session, CT ct)
+ public virtual async Task CreateSessionAsync(ServerSideSession session, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("ServerSideSessionStore.CreateSession");
@@ -72,7 +72,7 @@ public class ServerSideSessionStore : IServerSideSessionStore
}
///
- public virtual async Task GetSessionAsync(string key, CT ct)
+ public virtual async Task GetSessionAsync(string key, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("ServerSideSessionStore.GetSession");
@@ -103,7 +103,7 @@ public class ServerSideSessionStore : IServerSideSessionStore
}
///
- public virtual async Task UpdateSessionAsync(ServerSideSession session, CT ct)
+ public virtual async Task UpdateSessionAsync(ServerSideSession session, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("ServerSideSessionStore.UpdateSession");
@@ -138,7 +138,7 @@ public class ServerSideSessionStore : IServerSideSessionStore
}
///
- public virtual async Task DeleteSessionAsync(string key, CT ct)
+ public virtual async Task DeleteSessionAsync(string key, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("ServerSideSessionStore.DeleteSession");
@@ -168,7 +168,7 @@ public class ServerSideSessionStore : IServerSideSessionStore
///
- public virtual async Task> GetSessionsAsync(SessionFilter filter, CT ct)
+ public virtual async Task> GetSessionsAsync(SessionFilter filter, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("ServerSideSessionStore.GetSessions");
@@ -197,7 +197,7 @@ public class ServerSideSessionStore : IServerSideSessionStore
}
///
- public virtual async Task DeleteSessionsAsync(SessionFilter filter, CT ct)
+ public virtual async Task DeleteSessionsAsync(SessionFilter filter, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("ServerSideSessionStore.DeleteSessions");
@@ -236,7 +236,7 @@ public class ServerSideSessionStore : IServerSideSessionStore
///
- public virtual async Task> GetAndRemoveExpiredSessionsAsync(int count, CT ct)
+ public virtual async Task> GetAndRemoveExpiredSessionsAsync(int count, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("ServerSideSessionStore.GetAndRemoveExpiredSessions");
@@ -273,7 +273,7 @@ public class ServerSideSessionStore : IServerSideSessionStore
}
///
- public virtual async Task> QuerySessionsAsync(CT ct, SessionQuery filter = null)
+ public virtual async Task> QuerySessionsAsync(Ct ct, SessionQuery filter = null)
{
using var activity = Tracing.StoreActivitySource.StartActivity("ServerSideSessionStore.QuerySessions");
@@ -377,7 +377,7 @@ public class ServerSideSessionStore : IServerSideSessionStore
Ticket = entity.Data,
}).ToArray();
- private static async Task NextPage(IQueryable query, int last, SessionPaginationContext pagination, CT ct)
+ private static async Task NextPage(IQueryable query, int last, SessionPaginationContext pagination, Ct ct)
{
pagination.Items = await query.OrderBy(x => x.Id)
// if lastResultsId is zero, then this will just start at beginning
@@ -405,7 +405,7 @@ public class ServerSideSessionStore : IServerSideSessionStore
}
}
- private static async Task PreviousPage(IQueryable query, int first, SessionPaginationContext pagination, CT ct)
+ private static async Task PreviousPage(IQueryable query, int first, SessionPaginationContext pagination, Ct ct)
{
// sets query at the prior record from the last results, but in reverse order
pagination.Items = await query.OrderByDescending(x => x.Id)
diff --git a/identity-server/src/EntityFramework.Storage/Stores/SigningKeyStore.cs b/identity-server/src/EntityFramework.Storage/Stores/SigningKeyStore.cs
index 453590b0c..fb574cf24 100644
--- a/identity-server/src/EntityFramework.Storage/Stores/SigningKeyStore.cs
+++ b/identity-server/src/EntityFramework.Storage/Stores/SigningKeyStore.cs
@@ -46,7 +46,7 @@ public class SigningKeyStore : ISigningKeyStore
///
/// The cancellation token.
///
- public async Task> LoadKeysAsync(CT ct)
+ public async Task> LoadKeysAsync(Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("SigningKeyStore.LoadKeys");
@@ -71,7 +71,7 @@ public class SigningKeyStore : ISigningKeyStore
///
/// The cancellation token.
///
- public async Task StoreKeyAsync(SerializedKey key, CT ct)
+ public async Task StoreKeyAsync(SerializedKey key, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("SigningKeyStore.StoreKey");
@@ -96,7 +96,7 @@ public class SigningKeyStore : ISigningKeyStore
///
/// The cancellation token.
///
- public async Task DeleteKeyAsync(string id, CT ct)
+ public async Task DeleteKeyAsync(string id, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("SigningKeyStore.DeleteKey");
diff --git a/identity-server/src/EntityFramework.Storage/TokenCleanup/IOperationalStoreNotification.cs b/identity-server/src/EntityFramework.Storage/TokenCleanup/IOperationalStoreNotification.cs
index 014728a7f..c14088dac 100644
--- a/identity-server/src/EntityFramework.Storage/TokenCleanup/IOperationalStoreNotification.cs
+++ b/identity-server/src/EntityFramework.Storage/TokenCleanup/IOperationalStoreNotification.cs
@@ -19,7 +19,7 @@ public interface IOperationalStoreNotification
///
/// The cancellation token.
///
- Task PersistedGrantsRemovedAsync(IEnumerable persistedGrants, CT ct);
+ Task PersistedGrantsRemovedAsync(IEnumerable persistedGrants, Ct ct);
///
/// Notification for device codes being removed.
@@ -27,5 +27,5 @@ public interface IOperationalStoreNotification
/// The device codes being removed.
/// The cancellation token.
///
- Task DeviceCodesRemovedAsync(IEnumerable deviceCodes, CT ct);
+ Task DeviceCodesRemovedAsync(IEnumerable deviceCodes, Ct ct);
}
diff --git a/identity-server/src/EntityFramework.Storage/TokenCleanup/ITokenCleanupService.cs b/identity-server/src/EntityFramework.Storage/TokenCleanup/ITokenCleanupService.cs
index b9dc69059..f5223bcb8 100644
--- a/identity-server/src/EntityFramework.Storage/TokenCleanup/ITokenCleanupService.cs
+++ b/identity-server/src/EntityFramework.Storage/TokenCleanup/ITokenCleanupService.cs
@@ -18,5 +18,5 @@ public interface ITokenCleanupService
///
/// The cancellation token.
///
- Task CleanupGrantsAsync(CT ct);
+ Task CleanupGrantsAsync(Ct ct);
}
diff --git a/identity-server/src/EntityFramework.Storage/TokenCleanup/TokenCleanupService.cs b/identity-server/src/EntityFramework.Storage/TokenCleanup/TokenCleanupService.cs
index 5a6aa2ec5..d64acd443 100644
--- a/identity-server/src/EntityFramework.Storage/TokenCleanup/TokenCleanupService.cs
+++ b/identity-server/src/EntityFramework.Storage/TokenCleanup/TokenCleanupService.cs
@@ -43,7 +43,7 @@ public class TokenCleanupService : ITokenCleanupService
}
///
- public async Task CleanupGrantsAsync(CT ct)
+ public async Task CleanupGrantsAsync(Ct ct)
{
try
{
@@ -63,7 +63,7 @@ public class TokenCleanupService : ITokenCleanupService
/// Removes the stale persisted grants.
///
///
- protected virtual async Task RemoveGrantsAsync(CT ct)
+ protected virtual async Task RemoveGrantsAsync(Ct ct)
{
await RemoveExpiredPersistedGrantsAsync(ct);
if (_options.RemoveConsumedTokens)
@@ -76,7 +76,7 @@ public class TokenCleanupService : ITokenCleanupService
/// Removes the expired persisted grants.
///
///
- protected virtual async Task RemoveExpiredPersistedGrantsAsync(CT ct)
+ protected virtual async Task RemoveExpiredPersistedGrantsAsync(Ct ct)
{
var found = int.MaxValue;
@@ -145,7 +145,7 @@ public class TokenCleanupService : ITokenCleanupService
/// Removes the consumed persisted grants.
///
///
- protected virtual async Task RemoveConsumedPersistedGrantsAsync(CT ct)
+ protected virtual async Task RemoveConsumedPersistedGrantsAsync(Ct ct)
{
var found = int.MaxValue;
@@ -208,7 +208,7 @@ public class TokenCleanupService : ITokenCleanupService
/// Removes the stale device codes.
///
///
- protected virtual async Task RemoveDeviceCodesAsync(CT ct)
+ protected virtual async Task RemoveDeviceCodesAsync(Ct ct)
{
var found = int.MaxValue;
@@ -264,7 +264,7 @@ public class TokenCleanupService : ITokenCleanupService
///
/// Removes stale pushed authorization requests.
///
- protected virtual async Task RemovePushedAuthorizationRequestsAsync(CT ct)
+ protected virtual async Task RemovePushedAuthorizationRequestsAsync(Ct ct)
{
var found = int.MaxValue;
diff --git a/identity-server/src/EntityFramework/Services/CorsPolicyService.cs b/identity-server/src/EntityFramework/Services/CorsPolicyService.cs
index 0fa4199fe..5d80c7725 100644
--- a/identity-server/src/EntityFramework/Services/CorsPolicyService.cs
+++ b/identity-server/src/EntityFramework/Services/CorsPolicyService.cs
@@ -39,7 +39,7 @@ public class CorsPolicyService : ICorsPolicyService
}
///
- public async Task IsOriginAllowedAsync(string origin, CT ct)
+ public async Task IsOriginAllowedAsync(string origin, Ct ct)
{
#pragma warning disable CA1308 // this has historically been normalized to lower case and RFC 3986 instructs to normalize to lowercase
origin = origin.ToLowerInvariant();
diff --git a/identity-server/src/EntityFramework/TokenCleanupHost.cs b/identity-server/src/EntityFramework/TokenCleanupHost.cs
index 7895f2c3c..4431a4aca 100644
--- a/identity-server/src/EntityFramework/TokenCleanupHost.cs
+++ b/identity-server/src/EntityFramework/TokenCleanupHost.cs
@@ -38,7 +38,7 @@ public class TokenCleanupHost : IHostedService
///
/// Starts the token cleanup polling.
///
- public Task StartAsync(CT ct)
+ public Task StartAsync(Ct ct)
{
if (_options.EnableTokenCleanup)
{
@@ -60,7 +60,7 @@ public class TokenCleanupHost : IHostedService
///
/// Stops the token cleanup polling.
///
- public async Task StopAsync(CT ct)
+ public async Task StopAsync(Ct ct)
{
if (_options.EnableTokenCleanup)
{
@@ -76,7 +76,7 @@ public class TokenCleanupHost : IHostedService
}
}
- private async Task StartInternalAsync(CT ct)
+ private async Task StartInternalAsync(Ct ct)
{
// Start the first run at a random interval.
var delay = _options.FuzzTokenCleanupStart
@@ -121,7 +121,7 @@ public class TokenCleanupHost : IHostedService
}
}
- private async Task RemoveExpiredGrantsAsync(CT ct)
+ private async Task RemoveExpiredGrantsAsync(Ct ct)
{
try
{
diff --git a/identity-server/src/IdentityServer/Endpoints/AuthorizeEndpointBase.cs b/identity-server/src/IdentityServer/Endpoints/AuthorizeEndpointBase.cs
index 447033787..cbffae7cb 100644
--- a/identity-server/src/IdentityServer/Endpoints/AuthorizeEndpointBase.cs
+++ b/identity-server/src/IdentityServer/Endpoints/AuthorizeEndpointBase.cs
@@ -63,7 +63,7 @@ internal abstract class AuthorizeEndpointBase : IEndpointHandler
public abstract Task ProcessAsync(HttpContext context);
- internal async Task ProcessAuthorizeRequestAsync(NameValueCollection parameters, ClaimsPrincipal user, CT ct, bool checkConsentResponse = false)
+ internal async Task ProcessAuthorizeRequestAsync(NameValueCollection parameters, ClaimsPrincipal user, Ct ct, bool checkConsentResponse = false)
{
if (user != null)
{
@@ -163,7 +163,7 @@ internal abstract class AuthorizeEndpointBase : IEndpointHandler
protected async Task CreateErrorResultAsync(
string logMessage,
- CT ct,
+ Ct ct,
ValidatedAuthorizeRequest request = null,
string error = OidcConstants.AuthorizeErrors.ServerError,
string errorDescription = null,
@@ -225,7 +225,7 @@ internal abstract class AuthorizeEndpointBase : IEndpointHandler
}
}
- private Task RaiseFailureEventAsync(ValidatedAuthorizeRequest request, string error, string errorDescription, CT ct)
+ private Task RaiseFailureEventAsync(ValidatedAuthorizeRequest request, string error, string errorDescription, Ct ct)
{
Telemetry.Metrics.TokenIssuedFailure(
request.ClientId,
@@ -235,7 +235,7 @@ internal abstract class AuthorizeEndpointBase : IEndpointHandler
return _events.RaiseAsync(new TokenIssuedFailureEvent(request, error, errorDescription), ct);
}
- private Task RaiseResponseEventAsync(AuthorizeResponse response, CT ct)
+ private Task RaiseResponseEventAsync(AuthorizeResponse response, Ct ct)
{
if (!response.IsError)
{
diff --git a/identity-server/src/IdentityServer/Endpoints/BaseDiscoveryEndpoint.cs b/identity-server/src/IdentityServer/Endpoints/BaseDiscoveryEndpoint.cs
index a2cb4469f..d44a39d71 100644
--- a/identity-server/src/IdentityServer/Endpoints/BaseDiscoveryEndpoint.cs
+++ b/identity-server/src/IdentityServer/Endpoints/BaseDiscoveryEndpoint.cs
@@ -35,7 +35,7 @@ internal abstract class BaseDiscoveryEndpoint(
}
private async Task GetCachedDiscoveryDocument(IDistributedCache cache, string baseUrl,
- string issuerUri, CT ct)
+ string issuerUri, Ct ct)
{
var key = $"discoveryDocument/{baseUrl}/{issuerUri}";
var json = await cache.GetStringAsync(key, ct);
diff --git a/identity-server/src/IdentityServer/Endpoints/Results/AuthorizeResult.cs b/identity-server/src/IdentityServer/Endpoints/Results/AuthorizeResult.cs
index cabe5a216..2bd0fde54 100644
--- a/identity-server/src/IdentityServer/Endpoints/Results/AuthorizeResult.cs
+++ b/identity-server/src/IdentityServer/Endpoints/Results/AuthorizeResult.cs
@@ -80,7 +80,7 @@ public class AuthorizeHttpWriter : IHttpResponseWriter
}
}
- private async Task ConsumePushedAuthorizationRequest(AuthorizeResult result, CT ct)
+ private async Task ConsumePushedAuthorizationRequest(AuthorizeResult result, Ct ct)
{
var referenceValue = result.Response?.Request?.PushedAuthorizationReferenceValue;
if (referenceValue.IsPresent())
diff --git a/identity-server/src/IdentityServer/Endpoints/Results/CheckSessionResult.cs b/identity-server/src/IdentityServer/Endpoints/Results/CheckSessionResult.cs
index fb153e485..aecf38185 100644
--- a/identity-server/src/IdentityServer/Endpoints/Results/CheckSessionResult.cs
+++ b/identity-server/src/IdentityServer/Endpoints/Results/CheckSessionResult.cs
@@ -68,7 +68,7 @@ internal class CheckSessionHttpWriter : IHttpResponseWriter
}
private const string Html = @"
-
+
diff --git a/identity-server/src/IdentityServer/Endpoints/Results/EndSessionCallbackResult.cs b/identity-server/src/IdentityServer/Endpoints/Results/EndSessionCallbackResult.cs
index 18ab5395b..a14605ad7 100644
--- a/identity-server/src/IdentityServer/Endpoints/Results/EndSessionCallbackResult.cs
+++ b/identity-server/src/IdentityServer/Endpoints/Results/EndSessionCallbackResult.cs
@@ -80,7 +80,7 @@ internal class EndSessionCallbackHttpWriter : IHttpResponseWriter");
+ sb.Append("");
if (result.Result.FrontChannelLogoutUrls != null)
{
diff --git a/identity-server/src/IdentityServer/Extensions/IClientStoreExtensions.cs b/identity-server/src/IdentityServer/Extensions/IClientStoreExtensions.cs
index 4085de997..8ab4c206d 100644
--- a/identity-server/src/IdentityServer/Extensions/IClientStoreExtensions.cs
+++ b/identity-server/src/IdentityServer/Extensions/IClientStoreExtensions.cs
@@ -18,7 +18,7 @@ public static class IClientStoreExtensions
/// The client identifier.
/// The cancellation token.
///
- public static async Task FindEnabledClientByIdAsync(this IClientStore store, string clientId, CT ct)
+ public static async Task FindEnabledClientByIdAsync(this IClientStore store, string clientId, Ct ct)
{
var client = await store.FindClientByIdAsync(clientId, ct);
if (client != null && client.Enabled)
diff --git a/identity-server/src/IdentityServer/Extensions/IResourceStoreExtensions.cs b/identity-server/src/IdentityServer/Extensions/IResourceStoreExtensions.cs
index aff660353..fada564ac 100644
--- a/identity-server/src/IdentityServer/Extensions/IResourceStoreExtensions.cs
+++ b/identity-server/src/IdentityServer/Extensions/IResourceStoreExtensions.cs
@@ -18,7 +18,7 @@ public static class IResourceStoreExtensions
/// The scope names.
/// The cancellation token.
///
- public static async Task FindResourcesByScopeAsync(this IResourceStore store, IEnumerable scopeNames, CT ct)
+ public static async Task FindResourcesByScopeAsync(this IResourceStore store, IEnumerable scopeNames, Ct ct)
{
var identity = await store.FindIdentityResourcesByScopeNameAsync(scopeNames, ct);
var apiResources = await store.FindApiResourcesByScopeNameAsync(scopeNames, ct);
@@ -91,7 +91,7 @@ public static class IResourceStoreExtensions
/// The scope names.
/// The cancellation token.
///
- public static async Task FindEnabledResourcesByScopeAsync(this IResourceStore store, IEnumerable scopeNames, CT ct) => (await store.FindResourcesByScopeAsync(scopeNames, ct)).FilterEnabled();
+ public static async Task FindEnabledResourcesByScopeAsync(this IResourceStore store, IEnumerable scopeNames, Ct ct) => (await store.FindResourcesByScopeAsync(scopeNames, ct)).FilterEnabled();
///
/// Gets all enabled resources.
@@ -99,7 +99,7 @@ public static class IResourceStoreExtensions
/// The store.
/// The cancellation token.
///
- public static async Task GetAllEnabledResourcesAsync(this IResourceStore store, CT ct)
+ public static async Task GetAllEnabledResourcesAsync(this IResourceStore store, Ct ct)
{
var resources = await store.GetAllResourcesAsync(ct);
ValidateNameUniqueness(resources.IdentityResources, resources.ApiResources, resources.ApiScopes);
@@ -114,7 +114,7 @@ public static class IResourceStoreExtensions
/// The scope names.
/// The cancellation token.
///
- public static async Task> FindEnabledIdentityResourcesByScopeAsync(this IResourceStore store, IEnumerable scopeNames, CT ct) => (await store.FindIdentityResourcesByScopeNameAsync(scopeNames, ct)).Where(x => x.Enabled).ToArray();
+ public static async Task> FindEnabledIdentityResourcesByScopeAsync(this IResourceStore store, IEnumerable scopeNames, Ct ct) => (await store.FindIdentityResourcesByScopeNameAsync(scopeNames, ct)).Where(x => x.Enabled).ToArray();
///
/// Finds the enabled API resources by name.
@@ -122,5 +122,5 @@ public static class IResourceStoreExtensions
/// The store.
/// The resource names.
/// The cancellation token.
- public static async Task> FindEnabledApiResourcesByNameAsync(this IResourceStore store, IEnumerable resourceNames, CT ct) => (await store.FindApiResourcesByNameAsync(resourceNames, ct)).Where(x => x.Enabled).ToArray();
+ public static async Task> FindEnabledApiResourcesByNameAsync(this IResourceStore store, IEnumerable resourceNames, Ct ct) => (await store.FindApiResourcesByNameAsync(resourceNames, ct)).Where(x => x.Enabled).ToArray();
}
diff --git a/identity-server/src/IdentityServer/Extensions/NameValueCollectionExtensions.cs b/identity-server/src/IdentityServer/Extensions/NameValueCollectionExtensions.cs
index 870e22472..b08723303 100644
--- a/identity-server/src/IdentityServer/Extensions/NameValueCollectionExtensions.cs
+++ b/identity-server/src/IdentityServer/Extensions/NameValueCollectionExtensions.cs
@@ -111,7 +111,7 @@ internal static class NameValueCollectionExtensions
{
if (nameFilter.Contains(name, StringComparer.OrdinalIgnoreCase))
{
- value = "***REDACTED***";
+ value = "***REDACtED***";
}
dict.Add(name, value);
}
diff --git a/identity-server/src/IdentityServer/Hosting/DynamicProviders/Store/CachingIdentityProviderStore.cs b/identity-server/src/IdentityServer/Hosting/DynamicProviders/Store/CachingIdentityProviderStore.cs
index fb8f6c37e..8d4baa2a0 100644
--- a/identity-server/src/IdentityServer/Hosting/DynamicProviders/Store/CachingIdentityProviderStore.cs
+++ b/identity-server/src/IdentityServer/Hosting/DynamicProviders/Store/CachingIdentityProviderStore.cs
@@ -51,7 +51,7 @@ public class CachingIdentityProviderStore : IIdentityProviderStore
}
///
- public async Task> GetAllSchemeNamesAsync(CT ct)
+ public async Task> GetAllSchemeNamesAsync(Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("CachingIdentityProviderStore.GetAllSchemeNames");
@@ -63,7 +63,7 @@ public class CachingIdentityProviderStore : IIdentityProviderStore
}
///
- public async Task GetBySchemeAsync(string scheme, CT ct)
+ public async Task GetBySchemeAsync(string scheme, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("CachingIdentityProviderStore.GetByScheme");
diff --git a/identity-server/src/IdentityServer/Hosting/DynamicProviders/Store/InMemoryIdentityProviderStore.cs b/identity-server/src/IdentityServer/Hosting/DynamicProviders/Store/InMemoryIdentityProviderStore.cs
index 8cb34904b..4b44a4418 100644
--- a/identity-server/src/IdentityServer/Hosting/DynamicProviders/Store/InMemoryIdentityProviderStore.cs
+++ b/identity-server/src/IdentityServer/Hosting/DynamicProviders/Store/InMemoryIdentityProviderStore.cs
@@ -13,7 +13,7 @@ internal class InMemoryIdentityProviderStore : IIdentityProviderStore
public InMemoryIdentityProviderStore(IEnumerable providers) => _providers = providers;
- public Task> GetAllSchemeNamesAsync(CT ct)
+ public Task> GetAllSchemeNamesAsync(Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("InMemoryOidcProviderStore.GetAllSchemeNames");
@@ -27,7 +27,7 @@ internal class InMemoryIdentityProviderStore : IIdentityProviderStore
return Task.FromResult(items);
}
- public Task GetBySchemeAsync(string scheme, CT ct)
+ public Task GetBySchemeAsync(string scheme, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("InMemoryOidcProviderStore.GetByScheme");
diff --git a/identity-server/src/IdentityServer/Hosting/DynamicProviders/Store/NonCachingIdentityProviderStore.cs b/identity-server/src/IdentityServer/Hosting/DynamicProviders/Store/NonCachingIdentityProviderStore.cs
index e53db79cc..f25f55a72 100644
--- a/identity-server/src/IdentityServer/Hosting/DynamicProviders/Store/NonCachingIdentityProviderStore.cs
+++ b/identity-server/src/IdentityServer/Hosting/DynamicProviders/Store/NonCachingIdentityProviderStore.cs
@@ -38,10 +38,10 @@ public class NonCachingIdentityProviderStore : IIdentityProviderStore
}
///
- public Task> GetAllSchemeNamesAsync(CT ct) => _inner.GetAllSchemeNamesAsync(ct);
+ public Task> GetAllSchemeNamesAsync(Ct ct) => _inner.GetAllSchemeNamesAsync(ct);
///
- public async Task GetBySchemeAsync(string scheme, CT ct)
+ public async Task GetBySchemeAsync(string scheme, Ct ct)
{
if (_httpContextAccessor.HttpContext == null)
{
diff --git a/identity-server/src/IdentityServer/Hosting/DynamicProviders/Store/NopIdentityProviderStore.cs b/identity-server/src/IdentityServer/Hosting/DynamicProviders/Store/NopIdentityProviderStore.cs
index c5d2dd833..0e7bcd5a2 100644
--- a/identity-server/src/IdentityServer/Hosting/DynamicProviders/Store/NopIdentityProviderStore.cs
+++ b/identity-server/src/IdentityServer/Hosting/DynamicProviders/Store/NopIdentityProviderStore.cs
@@ -9,7 +9,7 @@ namespace Duende.IdentityServer.Hosting.DynamicProviders;
internal class NopIdentityProviderStore : IIdentityProviderStore
{
- public Task> GetAllSchemeNamesAsync(CT ct) => Task.FromResult(Enumerable.Empty());
+ public Task> GetAllSchemeNamesAsync(Ct ct) => Task.FromResult(Enumerable.Empty());
- public Task GetBySchemeAsync(string scheme, CT ct) => Task.FromResult(null);
+ public Task GetBySchemeAsync(string scheme, Ct ct) => Task.FromResult(null);
}
diff --git a/identity-server/src/IdentityServer/Hosting/DynamicProviders/Store/ValidatingIdentityProviderStore.cs b/identity-server/src/IdentityServer/Hosting/DynamicProviders/Store/ValidatingIdentityProviderStore.cs
index a0a753f42..1185ec479 100644
--- a/identity-server/src/IdentityServer/Hosting/DynamicProviders/Store/ValidatingIdentityProviderStore.cs
+++ b/identity-server/src/IdentityServer/Hosting/DynamicProviders/Store/ValidatingIdentityProviderStore.cs
@@ -38,10 +38,10 @@ public class ValidatingIdentityProviderStore : IIdentityProviderStore
}
///
- public Task> GetAllSchemeNamesAsync(CT ct) => _inner.GetAllSchemeNamesAsync(ct);
+ public Task> GetAllSchemeNamesAsync(Ct ct) => _inner.GetAllSchemeNamesAsync(ct);
///
- public async Task GetBySchemeAsync(string scheme, CT ct)
+ public async Task GetBySchemeAsync(string scheme, Ct ct)
{
var idp = await _inner.GetBySchemeAsync(scheme, ct);
diff --git a/identity-server/src/IdentityServer/Hosting/ServerSideSessionCleanupHost.cs b/identity-server/src/IdentityServer/Hosting/ServerSideSessionCleanupHost.cs
index 07c33ed3b..8e603b760 100644
--- a/identity-server/src/IdentityServer/Hosting/ServerSideSessionCleanupHost.cs
+++ b/identity-server/src/IdentityServer/Hosting/ServerSideSessionCleanupHost.cs
@@ -19,13 +19,13 @@ public class ServerSideSessionCleanupHost(
ILogger logger) : BackgroundService
{
///
- public override Task StartAsync(CT ct) =>
+ public override Task StartAsync(Ct ct) =>
!options.ServerSideSessions.RemoveExpiredSessions
? Task.CompletedTask
: base.StartAsync(ct);
///
- protected override async Task ExecuteAsync(CT stoppingToken)
+ protected override async Task ExecuteAsync(Ct stoppingToken)
{
logger.LogDebug("Starting server-side session removal");
@@ -68,7 +68,7 @@ public class ServerSideSessionCleanupHost(
logger.LogDebug("Stopping server-side session removal");
}
- private async Task RunAsync(CT ct)
+ private async Task RunAsync(Ct ct)
{
// this is here for testing
if (!options.ServerSideSessions.RemoveExpiredSessions)
diff --git a/identity-server/src/IdentityServer/IdentityServerTools.cs b/identity-server/src/IdentityServer/IdentityServerTools.cs
index eaf41cc23..9cf815b2c 100644
--- a/identity-server/src/IdentityServer/IdentityServerTools.cs
+++ b/identity-server/src/IdentityServer/IdentityServerTools.cs
@@ -35,7 +35,7 @@ public interface IIdentityServerTools
/// of the token. Ensure that calls to this method will only occur if there
/// is an incoming HTTP request or with the option set.
///
- Task IssueJwtAsync(int lifetime, IEnumerable claims, CT ct);
+ Task IssueJwtAsync(int lifetime, IEnumerable claims, Ct ct);
///
/// Issues a JWT with a specific lifetime, issuer, and set of claims.
@@ -49,7 +49,7 @@ public interface IIdentityServerTools
/// The cancellation token.
/// A JWT with the specified lifetime, issuer and additional
/// claims.
- Task IssueJwtAsync(int lifetime, string issuer, IEnumerable claims, CT ct);
+ Task IssueJwtAsync(int lifetime, string issuer, IEnumerable claims, Ct ct);
///
/// Issues a JWT with a specific lifetime, issuer, token type, and set of
@@ -66,7 +66,7 @@ public interface IIdentityServerTools
/// The cancellation token.
/// A JWT with the specified lifetime, issuer, token type, and
/// additional claims.
- Task IssueJwtAsync(int lifetime, string issuer, string tokenType, IEnumerable claims, CT ct);
+ Task IssueJwtAsync(int lifetime, string issuer, string tokenType, IEnumerable claims, Ct ct);
///
/// Issues a JWT access token for a particular client.
@@ -92,7 +92,7 @@ public interface IIdentityServerTools
Task IssueClientJwtAsync(
string clientId,
int lifetime,
- CT ct,
+ Ct ct,
IEnumerable? scopes = null,
IEnumerable? audiences = null,
IEnumerable? additionalClaims = null);
@@ -118,21 +118,21 @@ public class IdentityServerTools : IIdentityServerTools
}
///
- public virtual async Task IssueJwtAsync(int lifetime, IEnumerable claims, CT ct)
+ public virtual async Task IssueJwtAsync(int lifetime, IEnumerable claims, Ct ct)
{
var issuer = await _issuerNameService.GetCurrentAsync(ct);
return await IssueJwtAsync(lifetime, issuer, claims, ct);
}
///
- public virtual Task IssueJwtAsync(int lifetime, string issuer, IEnumerable claims, CT ct)
+ public virtual Task IssueJwtAsync(int lifetime, string issuer, IEnumerable claims, Ct ct)
{
var tokenType = OidcConstants.TokenTypes.AccessToken;
return IssueJwtAsync(lifetime, issuer, tokenType, claims, ct);
}
///
- public virtual async Task IssueJwtAsync(int lifetime, string issuer, string tokenType, IEnumerable claims, CT ct)
+ public virtual async Task IssueJwtAsync(int lifetime, string issuer, string tokenType, IEnumerable claims, Ct ct)
{
ArgumentException.ThrowIfNullOrWhiteSpace(issuer);
ArgumentException.ThrowIfNullOrWhiteSpace(tokenType);
@@ -154,7 +154,7 @@ public class IdentityServerTools : IIdentityServerTools
public virtual async Task IssueClientJwtAsync(
string clientId,
int lifetime,
- CT ct,
+ Ct ct,
IEnumerable? scopes = null,
IEnumerable? audiences = null,
IEnumerable? additionalClaims = null)
diff --git a/identity-server/src/IdentityServer/Licensing/V2/Diagnostics/DiagnosticHostedService.cs b/identity-server/src/IdentityServer/Licensing/V2/Diagnostics/DiagnosticHostedService.cs
index 8e0f583f5..9af32b589 100644
--- a/identity-server/src/IdentityServer/Licensing/V2/Diagnostics/DiagnosticHostedService.cs
+++ b/identity-server/src/IdentityServer/Licensing/V2/Diagnostics/DiagnosticHostedService.cs
@@ -10,7 +10,7 @@ namespace Duende.IdentityServer.Licensing.V2.Diagnostics;
internal class DiagnosticHostedService(DiagnosticSummary diagnosticSummary, IOptions options, ILogger logger) : BackgroundService
{
- protected override async Task ExecuteAsync(CT stoppingToken)
+ protected override async Task ExecuteAsync(Ct stoppingToken)
{
using var timer = new PeriodicTimer(options.Value.Diagnostics.LogFrequency);
try
@@ -35,9 +35,9 @@ internal class DiagnosticHostedService(DiagnosticSummary diagnosticSummary, IOpt
}
// Added for testing purposes to be able to call ExecuteAsync directly.
- internal Task ExecuteForTestOnly(CT stoppingToken) => ExecuteAsync(stoppingToken);
+ internal Task ExecuteForTestOnly(Ct stoppingToken) => ExecuteAsync(stoppingToken);
- public override async Task StopAsync(CT ct)
+ public override async Task StopAsync(Ct ct)
{
await diagnosticSummary.PrintSummary(ct);
diff --git a/identity-server/src/IdentityServer/Licensing/V2/Diagnostics/DiagnosticSummary.cs b/identity-server/src/IdentityServer/Licensing/V2/Diagnostics/DiagnosticSummary.cs
index f0240508e..cf44f96af 100644
--- a/identity-server/src/IdentityServer/Licensing/V2/Diagnostics/DiagnosticSummary.cs
+++ b/identity-server/src/IdentityServer/Licensing/V2/Diagnostics/DiagnosticSummary.cs
@@ -12,7 +12,7 @@ internal class DiagnosticSummary(DiagnosticDataService diagnosticDataService, Id
{
private readonly ILogger _logger = loggerFactory.CreateLogger("Duende.IdentityServer.Diagnostics.Summary");
- public async Task PrintSummary(CT ct)
+ public async Task PrintSummary(Ct ct)
{
var jsonMemory = await diagnosticDataService.GetJsonBytesAsync(ct);
var span = jsonMemory.Span;
diff --git a/identity-server/src/IdentityServer/Logging/Models/TokenRequestValidationLog.cs b/identity-server/src/IdentityServer/Logging/Models/TokenRequestValidationLog.cs
index c571b1681..1f5ec3767 100644
--- a/identity-server/src/IdentityServer/Logging/Models/TokenRequestValidationLog.cs
+++ b/identity-server/src/IdentityServer/Logging/Models/TokenRequestValidationLog.cs
@@ -50,7 +50,7 @@ internal class TokenRequestValidationLog
}
else if (request.UserName.IsPresent())
{
- UserName = "***REDACTED***";
+ UserName = "***REDACtED***";
}
}
diff --git a/identity-server/src/IdentityServer/ResponseHandling/Default/AuthorizeInteractionResponseGenerator.cs b/identity-server/src/IdentityServer/ResponseHandling/Default/AuthorizeInteractionResponseGenerator.cs
index 70ef66eb1..36d7cde45 100644
--- a/identity-server/src/IdentityServer/ResponseHandling/Default/AuthorizeInteractionResponseGenerator.cs
+++ b/identity-server/src/IdentityServer/ResponseHandling/Default/AuthorizeInteractionResponseGenerator.cs
@@ -72,7 +72,7 @@ public class AuthorizeInteractionResponseGenerator : IAuthorizeInteractionRespon
/// The consent.
/// The cancellation token.
///
- public virtual async Task ProcessInteractionAsync(ValidatedAuthorizeRequest request, ConsentResponse consent, CT ct)
+ public virtual async Task ProcessInteractionAsync(ValidatedAuthorizeRequest request, ConsentResponse consent, Ct ct)
{
using var activity = Tracing.BasicActivitySource.StartActivity("AuthorizeInteractionResponseGenerator.ProcessInteraction");
activity?.SetTag(Tracing.Properties.ClientId, request.Client.ClientId);
@@ -137,7 +137,7 @@ public class AuthorizeInteractionResponseGenerator : IAuthorizeInteractionRespon
/// The request.
/// The cancellation token.
///
- protected internal virtual Task ProcessCreateAccountAsync(ValidatedAuthorizeRequest request, CT ct)
+ protected internal virtual Task ProcessCreateAccountAsync(ValidatedAuthorizeRequest request, Ct ct)
{
InteractionResponse result;
@@ -165,7 +165,7 @@ public class AuthorizeInteractionResponseGenerator : IAuthorizeInteractionRespon
/// The request.
/// The cancellation token.
///
- protected internal virtual async Task ProcessLoginAsync(ValidatedAuthorizeRequest request, CT ct)
+ protected internal virtual async Task ProcessLoginAsync(ValidatedAuthorizeRequest request, Ct ct)
{
using var activity = Tracing.BasicActivitySource.StartActivity("AuthorizeInteractionResponseGenerator.ProcessLogin");
@@ -312,7 +312,7 @@ public class AuthorizeInteractionResponseGenerator : IAuthorizeInteractionRespon
///
///
/// Invalid PromptMode
- protected internal virtual async Task ProcessConsentAsync(ValidatedAuthorizeRequest request, ConsentResponse consent, CT ct)
+ protected internal virtual async Task ProcessConsentAsync(ValidatedAuthorizeRequest request, ConsentResponse consent, Ct ct)
{
using var activity = Tracing.BasicActivitySource.StartActivity("AuthorizeInteractionResponseGenerator.ProcessConsent");
diff --git a/identity-server/src/IdentityServer/ResponseHandling/Default/AuthorizeResponseGenerator.cs b/identity-server/src/IdentityServer/ResponseHandling/Default/AuthorizeResponseGenerator.cs
index f5133b144..9954f85d7 100644
--- a/identity-server/src/IdentityServer/ResponseHandling/Default/AuthorizeResponseGenerator.cs
+++ b/identity-server/src/IdentityServer/ResponseHandling/Default/AuthorizeResponseGenerator.cs
@@ -83,7 +83,7 @@ public class AuthorizeResponseGenerator : IAuthorizeResponseGenerator
}
///
- public virtual async Task CreateResponseAsync(ValidatedAuthorizeRequest request, CT ct)
+ public virtual async Task CreateResponseAsync(ValidatedAuthorizeRequest request, Ct ct)
{
using var activity = Tracing.BasicActivitySource.StartActivity("AuthorizeResponseGenerator.CreateResponse");
@@ -110,7 +110,7 @@ public class AuthorizeResponseGenerator : IAuthorizeResponseGenerator
///
/// The cancellation token.
///
- protected virtual async Task CreateHybridFlowResponseAsync(ValidatedAuthorizeRequest request, CT ct)
+ protected virtual async Task CreateHybridFlowResponseAsync(ValidatedAuthorizeRequest request, Ct ct)
{
Logger.LogDebug("Creating Hybrid Flow response.");
@@ -129,7 +129,7 @@ public class AuthorizeResponseGenerator : IAuthorizeResponseGenerator
///
/// The cancellation token.
///
- protected virtual async Task CreateCodeFlowResponseAsync(ValidatedAuthorizeRequest request, CT ct)
+ protected virtual async Task CreateCodeFlowResponseAsync(ValidatedAuthorizeRequest request, Ct ct)
{
Logger.LogDebug("Creating Authorization Code Flow response.");
@@ -154,7 +154,7 @@ public class AuthorizeResponseGenerator : IAuthorizeResponseGenerator
/// The cancellation token.
///
///
- protected virtual async Task CreateImplicitFlowResponseAsync(ValidatedAuthorizeRequest request, CT ct, string authorizationCode = null)
+ protected virtual async Task CreateImplicitFlowResponseAsync(ValidatedAuthorizeRequest request, Ct ct, string authorizationCode = null)
{
Logger.LogDebug("Creating Implicit Flow response.");
@@ -231,7 +231,7 @@ public class AuthorizeResponseGenerator : IAuthorizeResponseGenerator
///
/// The cancellation token.
///
- protected virtual async Task CreateCodeAsync(ValidatedAuthorizeRequest request, CT ct)
+ protected virtual async Task CreateCodeAsync(ValidatedAuthorizeRequest request, Ct ct)
{
string stateHash = null;
if (Options.EmitStateHash && request.State.IsPresent())
diff --git a/identity-server/src/IdentityServer/ResponseHandling/Default/BackchannelAuthenticationResponseGenerator.cs b/identity-server/src/IdentityServer/ResponseHandling/Default/BackchannelAuthenticationResponseGenerator.cs
index 913dd9b2a..7bad0f2ac 100644
--- a/identity-server/src/IdentityServer/ResponseHandling/Default/BackchannelAuthenticationResponseGenerator.cs
+++ b/identity-server/src/IdentityServer/ResponseHandling/Default/BackchannelAuthenticationResponseGenerator.cs
@@ -64,7 +64,7 @@ public class BackchannelAuthenticationResponseGenerator : IBackchannelAuthentica
}
///
- public virtual async Task ProcessAsync(BackchannelAuthenticationRequestValidationResult validationResult, CT ct)
+ public virtual async Task ProcessAsync(BackchannelAuthenticationRequestValidationResult validationResult, Ct ct)
{
using var activity = Tracing.BasicActivitySource.StartActivity("BackchannelAuthenticationResponseGenerator.Process");
diff --git a/identity-server/src/IdentityServer/ResponseHandling/Default/DeviceAuthorizationResponseGenerator.cs b/identity-server/src/IdentityServer/ResponseHandling/Default/DeviceAuthorizationResponseGenerator.cs
index daec9fc08..07f38738c 100644
--- a/identity-server/src/IdentityServer/ResponseHandling/Default/DeviceAuthorizationResponseGenerator.cs
+++ b/identity-server/src/IdentityServer/ResponseHandling/Default/DeviceAuthorizationResponseGenerator.cs
@@ -60,7 +60,7 @@ public class DeviceAuthorizationResponseGenerator : IDeviceAuthorizationResponse
}
///
- public virtual async Task ProcessAsync(DeviceAuthorizationRequestValidationResult validationResult, string baseUrl, CT ct)
+ public virtual async Task ProcessAsync(DeviceAuthorizationRequestValidationResult validationResult, string baseUrl, Ct ct)
{
using var activity = Tracing.BasicActivitySource.StartActivity("DeviceAuthorizationResponseGenerator.Process");
diff --git a/identity-server/src/IdentityServer/ResponseHandling/Default/DiscoveryResponseGenerator.cs b/identity-server/src/IdentityServer/ResponseHandling/Default/DiscoveryResponseGenerator.cs
index b472bbbde..4aa17934d 100644
--- a/identity-server/src/IdentityServer/ResponseHandling/Default/DiscoveryResponseGenerator.cs
+++ b/identity-server/src/IdentityServer/ResponseHandling/Default/DiscoveryResponseGenerator.cs
@@ -93,7 +93,7 @@ public class DiscoveryResponseGenerator : IDiscoveryResponseGenerator
/// The base URL.
/// The issuer URI.
/// The cancellation token.
- public virtual async Task> CreateDiscoveryDocumentAsync(string baseUrl, string issuerUri, CT ct)
+ public virtual async Task> CreateDiscoveryDocumentAsync(string baseUrl, string issuerUri, Ct ct)
{
using var activity = Tracing.BasicActivitySource.StartActivity("DiscoveryResponseGenerator.CreateDiscoveryDocument");
@@ -460,7 +460,7 @@ public class DiscoveryResponseGenerator : IDiscoveryResponseGenerator
/// Creates the JWK document.
///
/// The cancellation token.
- public virtual async Task> CreateJwkDocumentAsync(CT ct)
+ public virtual async Task> CreateJwkDocumentAsync(Ct ct)
{
using var activity = Tracing.BasicActivitySource.StartActivity("DiscoveryResponseGenerator.CreateJwkDocument");
diff --git a/identity-server/src/IdentityServer/ResponseHandling/Default/IntrospectionResponseGenerator.cs b/identity-server/src/IdentityServer/ResponseHandling/Default/IntrospectionResponseGenerator.cs
index 2fc0a9d58..318786599 100644
--- a/identity-server/src/IdentityServer/ResponseHandling/Default/IntrospectionResponseGenerator.cs
+++ b/identity-server/src/IdentityServer/ResponseHandling/Default/IntrospectionResponseGenerator.cs
@@ -47,7 +47,7 @@ public class IntrospectionResponseGenerator : IIntrospectionResponseGenerator
/// The validation result.
/// The cancellation token.
///
- public virtual async Task> ProcessAsync(IntrospectionRequestValidationResult validationResult, CT ct)
+ public virtual async Task> ProcessAsync(IntrospectionRequestValidationResult validationResult, Ct ct)
{
using var activity = Tracing.BasicActivitySource.StartActivity("IntrospectionResponseGenerator.Process");
@@ -109,7 +109,7 @@ public class IntrospectionResponseGenerator : IIntrospectionResponseGenerator
/// The validation result.
/// The cancellation token.
///
- protected virtual async Task AreExpectedScopesPresentAsync(IntrospectionRequestValidationResult validationResult, CT ct)
+ protected virtual async Task AreExpectedScopesPresentAsync(IntrospectionRequestValidationResult validationResult, Ct ct)
{
var apiScopes = validationResult.Api.Scopes;
var tokenScopes = validationResult.Claims.Where(c => c.Type == JwtClaimTypes.Scope);
diff --git a/identity-server/src/IdentityServer/ResponseHandling/Default/PushedAuthorizationResponseGenerator.cs b/identity-server/src/IdentityServer/ResponseHandling/Default/PushedAuthorizationResponseGenerator.cs
index 184a5514f..72a3ddc77 100644
--- a/identity-server/src/IdentityServer/ResponseHandling/Default/PushedAuthorizationResponseGenerator.cs
+++ b/identity-server/src/IdentityServer/ResponseHandling/Default/PushedAuthorizationResponseGenerator.cs
@@ -37,7 +37,7 @@ public class PushedAuthorizationResponseGenerator : IPushedAuthorizationResponse
}
///
- public async Task CreateResponseAsync(ValidatedPushedAuthorizationRequest request, CT ct)
+ public async Task CreateResponseAsync(ValidatedPushedAuthorizationRequest request, Ct ct)
{
// Create a reference value
var referenceValue = await _handleGeneration.GenerateAsync(ct);
diff --git a/identity-server/src/IdentityServer/ResponseHandling/Default/TokenResponseGenerator.cs b/identity-server/src/IdentityServer/ResponseHandling/Default/TokenResponseGenerator.cs
index 9cf1346d6..c1d3db214 100644
--- a/identity-server/src/IdentityServer/ResponseHandling/Default/TokenResponseGenerator.cs
+++ b/identity-server/src/IdentityServer/ResponseHandling/Default/TokenResponseGenerator.cs
@@ -80,7 +80,7 @@ public class TokenResponseGenerator : ITokenResponseGenerator
/// The request.
/// The cancellation token.
///
- public virtual async Task ProcessAsync(TokenRequestValidationResult request, CT ct)
+ public virtual async Task ProcessAsync(TokenRequestValidationResult request, Ct ct)
{
using var activity = Tracing.BasicActivitySource.StartActivity("TokenResponseGenerator.Process");
activity?.SetTag(Tracing.Properties.GrantType, request.ValidatedRequest.GrantType);
@@ -104,7 +104,7 @@ public class TokenResponseGenerator : ITokenResponseGenerator
/// The request.
/// The cancellation token.
///
- protected virtual Task ProcessClientCredentialsRequestAsync(TokenRequestValidationResult request, CT ct)
+ protected virtual Task ProcessClientCredentialsRequestAsync(TokenRequestValidationResult request, Ct ct)
{
Logger.LogTrace("Creating response for client credentials request");
@@ -117,7 +117,7 @@ public class TokenResponseGenerator : ITokenResponseGenerator
/// The request.
/// The cancellation token.
///
- protected virtual Task ProcessPasswordRequestAsync(TokenRequestValidationResult request, CT ct)
+ protected virtual Task ProcessPasswordRequestAsync(TokenRequestValidationResult request, Ct ct)
{
Logger.LogTrace("Creating response for password request");
@@ -131,7 +131,7 @@ public class TokenResponseGenerator : ITokenResponseGenerator
/// The cancellation token.
///
/// Client does not exist anymore.
- protected virtual async Task ProcessAuthorizationCodeRequestAsync(TokenRequestValidationResult request, CT ct)
+ protected virtual async Task ProcessAuthorizationCodeRequestAsync(TokenRequestValidationResult request, Ct ct)
{
Logger.LogTrace("Creating response for authorization code request");
@@ -175,7 +175,7 @@ public class TokenResponseGenerator : ITokenResponseGenerator
/// The request.
/// The cancellation token.
///
- protected virtual async Task ProcessRefreshTokenRequestAsync(TokenRequestValidationResult request, CT ct)
+ protected virtual async Task ProcessRefreshTokenRequestAsync(TokenRequestValidationResult request, Ct ct)
{
Logger.LogTrace("Creating response for refresh token request");
@@ -236,7 +236,7 @@ public class TokenResponseGenerator : ITokenResponseGenerator
/// The request.
/// The cancellation token.
///
- protected virtual async Task ProcessDeviceCodeRequestAsync(TokenRequestValidationResult request, CT ct)
+ protected virtual async Task ProcessDeviceCodeRequestAsync(TokenRequestValidationResult request, Ct ct)
{
Logger.LogTrace("Creating response for device code request");
@@ -278,7 +278,7 @@ public class TokenResponseGenerator : ITokenResponseGenerator
/// The request.
/// The cancellation token.
///
- protected virtual async Task ProcessCibaRequestAsync(TokenRequestValidationResult request, CT ct)
+ protected virtual async Task ProcessCibaRequestAsync(TokenRequestValidationResult request, Ct ct)
{
Logger.LogTrace("Creating response for CIBA request");
@@ -317,7 +317,7 @@ public class TokenResponseGenerator : ITokenResponseGenerator
/// The request.
/// The cancellation token.
///
- protected virtual Task ProcessExtensionGrantRequestAsync(TokenRequestValidationResult request, CT ct)
+ protected virtual Task ProcessExtensionGrantRequestAsync(TokenRequestValidationResult request, Ct ct)
{
Logger.LogTrace("Creating response for extension grant request");
@@ -328,7 +328,7 @@ public class TokenResponseGenerator : ITokenResponseGenerator
/// Creates a response for a token request containing an access token and a
/// refresh token if requested.
///
- protected virtual async Task ProcessTokenRequestAsync(TokenRequestValidationResult validationResult, CT ct)
+ protected virtual async Task ProcessTokenRequestAsync(TokenRequestValidationResult validationResult, Ct ct)
{
(var accessToken, var refreshToken) = await CreateAccessTokenAsync(validationResult.ValidatedRequest, ct);
var response = new TokenResponse
@@ -356,7 +356,7 @@ public class TokenResponseGenerator : ITokenResponseGenerator
/// The cancellation token.
///
/// Client does not exist anymore.
- protected virtual async Task<(string accessToken, string refreshToken)> CreateAccessTokenAsync(ValidatedTokenRequest request, CT ct)
+ protected virtual async Task<(string accessToken, string refreshToken)> CreateAccessTokenAsync(ValidatedTokenRequest request, Ct ct)
{
var tokenRequest = new TokenCreationRequest
{
@@ -463,7 +463,7 @@ public class TokenResponseGenerator : ITokenResponseGenerator
/// The new access token.
/// The cancellation token.
///
- protected virtual async Task CreateIdTokenFromRefreshTokenRequestAsync(ValidatedTokenRequest request, string newAccessToken, CT ct)
+ protected virtual async Task CreateIdTokenFromRefreshTokenRequestAsync(ValidatedTokenRequest request, string newAccessToken, Ct ct)
{
if (request.RefreshToken.AuthorizedScopes.Contains(OidcConstants.StandardScopes.OpenId))
{
diff --git a/identity-server/src/IdentityServer/ResponseHandling/Default/TokenRevocationResponseGenerator.cs b/identity-server/src/IdentityServer/ResponseHandling/Default/TokenRevocationResponseGenerator.cs
index f144f59c6..a501875a2 100644
--- a/identity-server/src/IdentityServer/ResponseHandling/Default/TokenRevocationResponseGenerator.cs
+++ b/identity-server/src/IdentityServer/ResponseHandling/Default/TokenRevocationResponseGenerator.cs
@@ -52,7 +52,7 @@ public class TokenRevocationResponseGenerator : ITokenRevocationResponseGenerato
}
///
- public virtual async Task ProcessAsync(TokenRevocationRequestValidationResult validationResult, CT ct)
+ public virtual async Task ProcessAsync(TokenRevocationRequestValidationResult validationResult, Ct ct)
{
using var activity = Tracing.BasicActivitySource.StartActivity("TokenRevocationResponseGenerator.Process");
@@ -96,7 +96,7 @@ public class TokenRevocationResponseGenerator : ITokenRevocationResponseGenerato
///
/// Revoke access token only if it belongs to client doing the request.
///
- protected virtual async Task RevokeAccessTokenAsync(TokenRevocationRequestValidationResult validationResult, CT ct)
+ protected virtual async Task RevokeAccessTokenAsync(TokenRevocationRequestValidationResult validationResult, Ct ct)
{
var token = await ReferenceTokenStore.GetReferenceTokenAsync(validationResult.Token, ct);
@@ -121,7 +121,7 @@ public class TokenRevocationResponseGenerator : ITokenRevocationResponseGenerato
///
/// Revoke refresh token only if it belongs to client doing the request
///
- protected virtual async Task RevokeRefreshTokenAsync(TokenRevocationRequestValidationResult validationResult, CT ct)
+ protected virtual async Task RevokeRefreshTokenAsync(TokenRevocationRequestValidationResult validationResult, Ct ct)
{
var token = await RefreshTokenStore.GetRefreshTokenAsync(validationResult.Token, ct);
diff --git a/identity-server/src/IdentityServer/ResponseHandling/Default/UserInfoResponseGenerator.cs b/identity-server/src/IdentityServer/ResponseHandling/Default/UserInfoResponseGenerator.cs
index 7a34830e3..33db09f9d 100644
--- a/identity-server/src/IdentityServer/ResponseHandling/Default/UserInfoResponseGenerator.cs
+++ b/identity-server/src/IdentityServer/ResponseHandling/Default/UserInfoResponseGenerator.cs
@@ -54,7 +54,7 @@ public class UserInfoResponseGenerator : IUserInfoResponseGenerator
/// The cancellation token.
///
/// Profile service returned incorrect subject value
- public virtual async Task> ProcessAsync(UserInfoRequestValidationResult validationResult, CT ct)
+ public virtual async Task> ProcessAsync(UserInfoRequestValidationResult validationResult, Ct ct)
{
using var activity = Tracing.BasicActivitySource.StartActivity("UserInfoResponseGenerator.Process");
@@ -112,7 +112,7 @@ public class UserInfoResponseGenerator : IUserInfoResponseGenerator
///
/// The cancellation token.
///
- protected internal virtual async Task GetRequestedResourcesAsync(IEnumerable scopes, CT ct)
+ protected internal virtual async Task GetRequestedResourcesAsync(IEnumerable scopes, Ct ct)
{
if (scopes == null || !scopes.Any())
{
diff --git a/identity-server/src/IdentityServer/ResponseHandling/IAuthorizeInteractionResponseGenerator.cs b/identity-server/src/IdentityServer/ResponseHandling/IAuthorizeInteractionResponseGenerator.cs
index 2abed1ba3..72c76b9f8 100644
--- a/identity-server/src/IdentityServer/ResponseHandling/IAuthorizeInteractionResponseGenerator.cs
+++ b/identity-server/src/IdentityServer/ResponseHandling/IAuthorizeInteractionResponseGenerator.cs
@@ -21,5 +21,5 @@ public interface IAuthorizeInteractionResponseGenerator
/// The consent.
/// The cancellation token.
///
- Task ProcessInteractionAsync(ValidatedAuthorizeRequest request, ConsentResponse? consent, CT ct);
+ Task ProcessInteractionAsync(ValidatedAuthorizeRequest request, ConsentResponse? consent, Ct ct);
}
diff --git a/identity-server/src/IdentityServer/ResponseHandling/IAuthorizeResponseGenerator.cs b/identity-server/src/IdentityServer/ResponseHandling/IAuthorizeResponseGenerator.cs
index 4a422988b..301abee0a 100644
--- a/identity-server/src/IdentityServer/ResponseHandling/IAuthorizeResponseGenerator.cs
+++ b/identity-server/src/IdentityServer/ResponseHandling/IAuthorizeResponseGenerator.cs
@@ -17,5 +17,5 @@ public interface IAuthorizeResponseGenerator
/// The request.
/// The cancellation token.
///
- Task CreateResponseAsync(ValidatedAuthorizeRequest request, CT ct);
+ Task CreateResponseAsync(ValidatedAuthorizeRequest request, Ct ct);
}
diff --git a/identity-server/src/IdentityServer/ResponseHandling/IBackchannelAuthenticationResponseGenerator.cs b/identity-server/src/IdentityServer/ResponseHandling/IBackchannelAuthenticationResponseGenerator.cs
index b8392de7c..0cd82a659 100644
--- a/identity-server/src/IdentityServer/ResponseHandling/IBackchannelAuthenticationResponseGenerator.cs
+++ b/identity-server/src/IdentityServer/ResponseHandling/IBackchannelAuthenticationResponseGenerator.cs
@@ -17,5 +17,5 @@ public interface IBackchannelAuthenticationResponseGenerator
/// The validation result.
/// The cancellation token.
///
- Task ProcessAsync(BackchannelAuthenticationRequestValidationResult validationResult, CT ct);
+ Task ProcessAsync(BackchannelAuthenticationRequestValidationResult validationResult, Ct ct);
}
diff --git a/identity-server/src/IdentityServer/ResponseHandling/IDeviceAuthorizationResponseGenerator.cs b/identity-server/src/IdentityServer/ResponseHandling/IDeviceAuthorizationResponseGenerator.cs
index 65ce1fcb8..a974b7d4f 100644
--- a/identity-server/src/IdentityServer/ResponseHandling/IDeviceAuthorizationResponseGenerator.cs
+++ b/identity-server/src/IdentityServer/ResponseHandling/IDeviceAuthorizationResponseGenerator.cs
@@ -18,5 +18,5 @@ public interface IDeviceAuthorizationResponseGenerator
/// The base URL.
/// The cancellation token.
///
- Task ProcessAsync(DeviceAuthorizationRequestValidationResult validationResult, string baseUrl, CT ct);
+ Task ProcessAsync(DeviceAuthorizationRequestValidationResult validationResult, string baseUrl, Ct ct);
}
diff --git a/identity-server/src/IdentityServer/ResponseHandling/IDiscoveryResponseGenerator.cs b/identity-server/src/IdentityServer/ResponseHandling/IDiscoveryResponseGenerator.cs
index d65cf4a6a..365c6b5df 100644
--- a/identity-server/src/IdentityServer/ResponseHandling/IDiscoveryResponseGenerator.cs
+++ b/identity-server/src/IdentityServer/ResponseHandling/IDiscoveryResponseGenerator.cs
@@ -17,11 +17,11 @@ public interface IDiscoveryResponseGenerator
/// The base URL.
/// The issuer URI.
/// The cancellation token.
- Task> CreateDiscoveryDocumentAsync(string baseUrl, string issuerUri, CT ct);
+ Task> CreateDiscoveryDocumentAsync(string baseUrl, string issuerUri, Ct ct);
///
/// Creates the JWK document.
///
/// The cancellation token.
- Task> CreateJwkDocumentAsync(CT ct);
+ Task> CreateJwkDocumentAsync(Ct ct);
}
diff --git a/identity-server/src/IdentityServer/ResponseHandling/IIntrospectionResponseGenerator.cs b/identity-server/src/IdentityServer/ResponseHandling/IIntrospectionResponseGenerator.cs
index 427be2f9e..f9cffbd08 100644
--- a/identity-server/src/IdentityServer/ResponseHandling/IIntrospectionResponseGenerator.cs
+++ b/identity-server/src/IdentityServer/ResponseHandling/IIntrospectionResponseGenerator.cs
@@ -17,5 +17,5 @@ public interface IIntrospectionResponseGenerator
/// The validation result.
/// The cancellation token.
///
- Task> ProcessAsync(IntrospectionRequestValidationResult validationResult, CT ct);
+ Task> ProcessAsync(IntrospectionRequestValidationResult validationResult, Ct ct);
}
diff --git a/identity-server/src/IdentityServer/ResponseHandling/IPushedAuthorizationResponseGenerator.cs b/identity-server/src/IdentityServer/ResponseHandling/IPushedAuthorizationResponseGenerator.cs
index 6391267fa..65751683a 100644
--- a/identity-server/src/IdentityServer/ResponseHandling/IPushedAuthorizationResponseGenerator.cs
+++ b/identity-server/src/IdentityServer/ResponseHandling/IPushedAuthorizationResponseGenerator.cs
@@ -21,5 +21,5 @@ public interface IPushedAuthorizationResponseGenerator
/// The validated pushed authorization request.
/// The cancellation token.
/// A task that contains response model indicating either success or failure.
- Task CreateResponseAsync(ValidatedPushedAuthorizationRequest request, CT ct);
+ Task CreateResponseAsync(ValidatedPushedAuthorizationRequest request, Ct ct);
}
diff --git a/identity-server/src/IdentityServer/ResponseHandling/ITokenResponseGenerator.cs b/identity-server/src/IdentityServer/ResponseHandling/ITokenResponseGenerator.cs
index 1c43f4dbb..15fe2f92d 100644
--- a/identity-server/src/IdentityServer/ResponseHandling/ITokenResponseGenerator.cs
+++ b/identity-server/src/IdentityServer/ResponseHandling/ITokenResponseGenerator.cs
@@ -19,5 +19,5 @@ public interface ITokenResponseGenerator
/// The validation result.
/// The cancellation token.
///
- Task ProcessAsync(TokenRequestValidationResult validationResult, CT ct);
+ Task ProcessAsync(TokenRequestValidationResult validationResult, Ct ct);
}
diff --git a/identity-server/src/IdentityServer/ResponseHandling/ITokenRevocationResponseGenerator.cs b/identity-server/src/IdentityServer/ResponseHandling/ITokenRevocationResponseGenerator.cs
index 665112fb5..490fbbde4 100644
--- a/identity-server/src/IdentityServer/ResponseHandling/ITokenRevocationResponseGenerator.cs
+++ b/identity-server/src/IdentityServer/ResponseHandling/ITokenRevocationResponseGenerator.cs
@@ -17,5 +17,5 @@ public interface ITokenRevocationResponseGenerator
/// The userinfo request validation result.
/// The cancellation token.
///
- Task ProcessAsync(TokenRevocationRequestValidationResult validationResult, CT ct);
+ Task ProcessAsync(TokenRevocationRequestValidationResult validationResult, Ct ct);
}
diff --git a/identity-server/src/IdentityServer/ResponseHandling/IUserInfoResponseGenerator.cs b/identity-server/src/IdentityServer/ResponseHandling/IUserInfoResponseGenerator.cs
index a3f46b92c..2fc211b4a 100644
--- a/identity-server/src/IdentityServer/ResponseHandling/IUserInfoResponseGenerator.cs
+++ b/identity-server/src/IdentityServer/ResponseHandling/IUserInfoResponseGenerator.cs
@@ -17,5 +17,5 @@ public interface IUserInfoResponseGenerator
/// The userinfo request validation result.
/// The cancellation token.
///
- Task> ProcessAsync(UserInfoRequestValidationResult validationResult, CT ct);
+ Task> ProcessAsync(UserInfoRequestValidationResult validationResult, Ct ct);
}
diff --git a/identity-server/src/IdentityServer/Services/Default/BackChannelLogoutHttpClient.cs b/identity-server/src/IdentityServer/Services/Default/BackChannelLogoutHttpClient.cs
index e1586f473..4af02ec07 100644
--- a/identity-server/src/IdentityServer/Services/Default/BackChannelLogoutHttpClient.cs
+++ b/identity-server/src/IdentityServer/Services/Default/BackChannelLogoutHttpClient.cs
@@ -33,7 +33,7 @@ public class DefaultBackChannelLogoutHttpClient : IBackChannelLogoutHttpClient
///
/// The cancellation token.
///
- public async Task PostAsync(string url, Dictionary payload, CT ct)
+ public async Task PostAsync(string url, Dictionary payload, Ct ct)
{
using var activity = Tracing.ServiceActivitySource.StartActivity("DefaultBackChannelLogoutHttpClient.Post");
diff --git a/identity-server/src/IdentityServer/Services/Default/DefaultBackChannelLogoutService.cs b/identity-server/src/IdentityServer/Services/Default/DefaultBackChannelLogoutService.cs
index 1e08c1768..2906510cb 100644
--- a/identity-server/src/IdentityServer/Services/Default/DefaultBackChannelLogoutService.cs
+++ b/identity-server/src/IdentityServer/Services/Default/DefaultBackChannelLogoutService.cs
@@ -75,7 +75,7 @@ public class DefaultBackChannelLogoutService : IBackChannelLogoutService
}
///
- public virtual async Task SendLogoutNotificationsAsync(LogoutNotificationContext context, CT ct)
+ public virtual async Task SendLogoutNotificationsAsync(LogoutNotificationContext context, Ct ct)
{
using var activity = Tracing.ServiceActivitySource.StartActivity("DefaultBackChannelLogoutService.SendLogoutNotifications");
@@ -92,7 +92,7 @@ public class DefaultBackChannelLogoutService : IBackChannelLogoutService
///
/// The cancellation token.
///
- protected virtual async Task SendLogoutNotificationsAsync(IEnumerable requests, CT ct)
+ protected virtual async Task SendLogoutNotificationsAsync(IEnumerable requests, Ct ct)
{
requests ??= [];
var logoutRequestsWithPayload = new List<(BackChannelLogoutRequest, Dictionary)>();
@@ -118,7 +118,7 @@ public class DefaultBackChannelLogoutService : IBackChannelLogoutService
///
/// The cancellation token.
///
- protected virtual Task PostLogoutJwt(BackChannelLogoutRequest client, Dictionary data, CT ct) => HttpClient.PostAsync(client.LogoutUri, data, ct);
+ protected virtual Task PostLogoutJwt(BackChannelLogoutRequest client, Dictionary data, Ct ct) => HttpClient.PostAsync(client.LogoutUri, data, ct);
///
/// Creates the form-url-encoded payload (as a dictionary) to send to the client.
@@ -126,7 +126,7 @@ public class DefaultBackChannelLogoutService : IBackChannelLogoutService
///
/// The cancellation token.
///
- protected async Task> CreateFormPostPayloadAsync(BackChannelLogoutRequest request, CT ct)
+ protected async Task> CreateFormPostPayloadAsync(BackChannelLogoutRequest request, Ct ct)
{
var token = await CreateTokenAsync(request, ct);
@@ -143,7 +143,7 @@ public class DefaultBackChannelLogoutService : IBackChannelLogoutService
///
/// The cancellation token.
/// The token.
- protected virtual async Task CreateTokenAsync(BackChannelLogoutRequest request, CT ct)
+ protected virtual async Task CreateTokenAsync(BackChannelLogoutRequest request, Ct ct)
{
var claims = await CreateClaimsForTokenAsync(request);
if (claims.Any(x => x.Type == JwtClaimTypes.Nonce))
diff --git a/identity-server/src/IdentityServer/Services/Default/DefaultBackchannelAuthenticationInteractionService.cs b/identity-server/src/IdentityServer/Services/Default/DefaultBackchannelAuthenticationInteractionService.cs
index 8fb0ffb86..a5ef7f062 100644
--- a/identity-server/src/IdentityServer/Services/Default/DefaultBackchannelAuthenticationInteractionService.cs
+++ b/identity-server/src/IdentityServer/Services/Default/DefaultBackchannelAuthenticationInteractionService.cs
@@ -45,7 +45,7 @@ public class DefaultBackchannelAuthenticationInteractionService : IBackchannelAu
_logger = logger;
}
- private async Task CreateAsync(BackChannelAuthenticationRequest request, CT ct)
+ private async Task CreateAsync(BackChannelAuthenticationRequest request, Ct ct)
{
if (request == null)
{
@@ -79,7 +79,7 @@ public class DefaultBackchannelAuthenticationInteractionService : IBackchannelAu
}
///
- public async Task GetLoginRequestByInternalIdAsync(string id, CT ct)
+ public async Task GetLoginRequestByInternalIdAsync(string id, Ct ct)
{
using var activity = Tracing.ServiceActivitySource.StartActivity("DefaultBackchannelAuthenticationInteractionService.GetLoginRequestByInternalId");
@@ -88,7 +88,7 @@ public class DefaultBackchannelAuthenticationInteractionService : IBackchannelAu
}
///
- public async Task> GetPendingLoginRequestsForCurrentUserAsync(CT ct)
+ public async Task> GetPendingLoginRequestsForCurrentUserAsync(Ct ct)
{
using var activity = Tracing.ServiceActivitySource.StartActivity("DefaultBackchannelAuthenticationInteractionService.GetPendingLoginRequestsForCurrentUser");
@@ -117,7 +117,7 @@ public class DefaultBackchannelAuthenticationInteractionService : IBackchannelAu
}
///
- public async Task CompleteLoginRequestAsync(CompleteBackchannelLoginRequest completionRequest, CT ct)
+ public async Task CompleteLoginRequestAsync(CompleteBackchannelLoginRequest completionRequest, Ct ct)
{
using var activity = Tracing.ServiceActivitySource.StartActivity("DefaultBackchannelAuthenticationInteractionService.CompleteLoginRequest");
diff --git a/identity-server/src/IdentityServer/Services/Default/DefaultCache.cs b/identity-server/src/IdentityServer/Services/Default/DefaultCache.cs
index 043f9f748..2cceecc46 100644
--- a/identity-server/src/IdentityServer/Services/Default/DefaultCache.cs
+++ b/identity-server/src/IdentityServer/Services/Default/DefaultCache.cs
@@ -62,7 +62,7 @@ public class DefaultCache : ICache
protected string GetKey(string key) => typeof(T).FullName + KeySeparator + key;
///
- public Task GetAsync(string key, CT ct)
+ public Task GetAsync(string key, Ct ct)
{
using var activity = Tracing.CacheActivitySource.StartActivity("DefaultCache.Get");
@@ -72,7 +72,7 @@ public class DefaultCache : ICache
}
///
- public Task SetAsync(string key, T item, TimeSpan expiration, CT ct)
+ public Task SetAsync(string key, T item, TimeSpan expiration, Ct ct)
{
using var activity = Tracing.CacheActivitySource.StartActivity("DefaultCache.Set");
@@ -82,7 +82,7 @@ public class DefaultCache : ICache
}
///
- public Task RemoveAsync(string key, CT ct)
+ public Task RemoveAsync(string key, Ct ct)
{
using var activity = Tracing.CacheActivitySource.StartActivity("DefaultCache.Remove");
@@ -92,7 +92,7 @@ public class DefaultCache : ICache
}
///
- public async Task GetOrAddAsync(string key, TimeSpan duration, Func> get, CT ct)
+ public async Task GetOrAddAsync(string key, TimeSpan duration, Func> get, Ct ct)
{
using var activity = Tracing.CacheActivitySource.StartActivity("DefaultCache.GetOrAdd");
diff --git a/identity-server/src/IdentityServer/Services/Default/DefaultClaimsService.cs b/identity-server/src/IdentityServer/Services/Default/DefaultClaimsService.cs
index 4712ac4cc..c19f45fd1 100644
--- a/identity-server/src/IdentityServer/Services/Default/DefaultClaimsService.cs
+++ b/identity-server/src/IdentityServer/Services/Default/DefaultClaimsService.cs
@@ -39,7 +39,7 @@ public class DefaultClaimsService : IClaimsService
}
///
- public virtual async Task> GetIdentityTokenClaimsAsync(ClaimsPrincipal subject, ResourceValidationResult resources, bool includeAllIdentityClaims, ValidatedRequest request, CT ct)
+ public virtual async Task> GetIdentityTokenClaimsAsync(ClaimsPrincipal subject, ResourceValidationResult resources, bool includeAllIdentityClaims, ValidatedRequest request, Ct ct)
{
using var activity = Tracing.ServiceActivitySource.StartActivity("DefaultClaimsService.GetIdentityTokenClaims");
@@ -93,7 +93,7 @@ public class DefaultClaimsService : IClaimsService
}
///
- public virtual async Task> GetAccessTokenClaimsAsync(ClaimsPrincipal subject, ResourceValidationResult resourceResult, ValidatedRequest request, CT ct)
+ public virtual async Task> GetAccessTokenClaimsAsync(ClaimsPrincipal subject, ResourceValidationResult resourceResult, ValidatedRequest request, Ct ct)
{
using var activity = Tracing.ServiceActivitySource.StartActivity("DefaultClaimsService.GetAccessTokenClaims");
diff --git a/identity-server/src/IdentityServer/Services/Default/DefaultConsentService.cs b/identity-server/src/IdentityServer/Services/Default/DefaultConsentService.cs
index c095733a5..5f0b2f5e4 100644
--- a/identity-server/src/IdentityServer/Services/Default/DefaultConsentService.cs
+++ b/identity-server/src/IdentityServer/Services/Default/DefaultConsentService.cs
@@ -60,7 +60,7 @@ public class DefaultConsentService : IConsentService
/// or
/// subject
///
- public virtual async Task RequiresConsentAsync(ClaimsPrincipal subject, Client client, IEnumerable parsedScopes, CT ct)
+ public virtual async Task RequiresConsentAsync(ClaimsPrincipal subject, Client client, IEnumerable parsedScopes, Ct ct)
{
using var activity = Tracing.ServiceActivitySource.StartActivity("DefaultConsentService.RequiresConsent");
@@ -151,7 +151,7 @@ public class DefaultConsentService : IConsentService
/// or
/// subject
///
- public virtual async Task UpdateConsentAsync(ClaimsPrincipal subject, Client client, IEnumerable parsedScopes, CT ct)
+ public virtual async Task UpdateConsentAsync(ClaimsPrincipal subject, Client client, IEnumerable parsedScopes, Ct ct)
{
using var activity = Tracing.ServiceActivitySource.StartActivity("DefaultConsentService.UpdateConsent");
diff --git a/identity-server/src/IdentityServer/Services/Default/DefaultCorsPolicyService.cs b/identity-server/src/IdentityServer/Services/Default/DefaultCorsPolicyService.cs
index 71bb51296..6d0cf8206 100644
--- a/identity-server/src/IdentityServer/Services/Default/DefaultCorsPolicyService.cs
+++ b/identity-server/src/IdentityServer/Services/Default/DefaultCorsPolicyService.cs
@@ -42,7 +42,7 @@ public class DefaultCorsPolicyService : ICorsPolicyService
public bool AllowAll { get; set; }
///
- public virtual Task IsOriginAllowedAsync(string origin, CT ct)
+ public virtual Task IsOriginAllowedAsync(string origin, Ct ct)
{
using var activity = Tracing.ServiceActivitySource.StartActivity("DefaultCorsPolicyService.IsOriginAllowed");
diff --git a/identity-server/src/IdentityServer/Services/Default/DefaultDeviceFlowCodeService.cs b/identity-server/src/IdentityServer/Services/Default/DefaultDeviceFlowCodeService.cs
index 3ab996c91..5e62e4509 100644
--- a/identity-server/src/IdentityServer/Services/Default/DefaultDeviceFlowCodeService.cs
+++ b/identity-server/src/IdentityServer/Services/Default/DefaultDeviceFlowCodeService.cs
@@ -29,7 +29,7 @@ public class DefaultDeviceFlowCodeService : IDeviceFlowCodeService
}
///
- public async Task StoreDeviceAuthorizationAsync(string userCode, DeviceCode data, CT ct)
+ public async Task StoreDeviceAuthorizationAsync(string userCode, DeviceCode data, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("DefaultDeviceFlowCodeService.SendLogoutNotifStoreDeviceAuthorization");
@@ -41,7 +41,7 @@ public class DefaultDeviceFlowCodeService : IDeviceFlowCodeService
}
///
- public Task FindByUserCodeAsync(string userCode, CT ct)
+ public Task FindByUserCodeAsync(string userCode, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("DefaultDeviceFlowCodeService.FindByUserCode");
@@ -49,7 +49,7 @@ public class DefaultDeviceFlowCodeService : IDeviceFlowCodeService
}
///
- public Task FindByDeviceCodeAsync(string deviceCode, CT ct)
+ public Task FindByDeviceCodeAsync(string deviceCode, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("DefaultDeviceFlowCodeService.FindByDeviceCode");
@@ -57,7 +57,7 @@ public class DefaultDeviceFlowCodeService : IDeviceFlowCodeService
}
///
- public Task UpdateByUserCodeAsync(string userCode, DeviceCode data, CT ct)
+ public Task UpdateByUserCodeAsync(string userCode, DeviceCode data, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("DefaultDeviceFlowCodeService.UpdateByUserCode");
@@ -65,7 +65,7 @@ public class DefaultDeviceFlowCodeService : IDeviceFlowCodeService
}
///
- public Task RemoveByDeviceCodeAsync(string deviceCode, CT ct)
+ public Task RemoveByDeviceCodeAsync(string deviceCode, Ct ct)
{
using var activity = Tracing.StoreActivitySource.StartActivity("DefaultDeviceFlowCodeService.RemoveByDeviceCode");
diff --git a/identity-server/src/IdentityServer/Services/Default/DefaultDeviceFlowInteractionService.cs b/identity-server/src/IdentityServer/Services/Default/DefaultDeviceFlowInteractionService.cs
index d66032309..995316899 100644
--- a/identity-server/src/IdentityServer/Services/Default/DefaultDeviceFlowInteractionService.cs
+++ b/identity-server/src/IdentityServer/Services/Default/DefaultDeviceFlowInteractionService.cs
@@ -31,7 +31,7 @@ internal class DefaultDeviceFlowInteractionService : IDeviceFlowInteractionServi
_logger = logger;
}
- public async Task GetAuthorizationContextAsync(string userCode, CT ct)
+ public async Task GetAuthorizationContextAsync(string userCode, Ct ct)
{
var deviceAuth = await _devices.FindByUserCodeAsync(userCode, ct);
if (deviceAuth == null)
@@ -58,7 +58,7 @@ internal class DefaultDeviceFlowInteractionService : IDeviceFlowInteractionServi
};
}
- public async Task HandleRequestAsync(string userCode, ConsentResponse consent, CT ct)
+ public async Task HandleRequestAsync(string userCode, ConsentResponse consent, Ct ct)
{
ArgumentNullException.ThrowIfNull(userCode);
ArgumentNullException.ThrowIfNull(consent);
diff --git a/identity-server/src/IdentityServer/Services/Default/DefaultEventService.cs b/identity-server/src/IdentityServer/Services/Default/DefaultEventService.cs
index 373d9a25c..7b3e74a5e 100644
--- a/identity-server/src/IdentityServer/Services/Default/DefaultEventService.cs
+++ b/identity-server/src/IdentityServer/Services/Default/DefaultEventService.cs
@@ -51,7 +51,7 @@ public class DefaultEventService : IEventService
}
///
- public async Task RaiseAsync(Event evt, CT ct)
+ public async Task RaiseAsync(Event evt, Ct ct)
{
ArgumentNullException.ThrowIfNull(evt);
@@ -93,7 +93,7 @@ public class DefaultEventService : IEventService
/// The evt.
/// The cancellation token.
///
- protected virtual async Task PrepareEventAsync(Event evt, CT ct)
+ protected virtual async Task PrepareEventAsync(Event evt, Ct ct)
{
evt.TimeStamp = TimeProvider.GetUtcNow().DateTime;
using var process = Process.GetCurrentProcess();
diff --git a/identity-server/src/IdentityServer/Services/Default/DefaultEventSink.cs b/identity-server/src/IdentityServer/Services/Default/DefaultEventSink.cs
index aa4c20304..72f2c3a09 100644
--- a/identity-server/src/IdentityServer/Services/Default/DefaultEventSink.cs
+++ b/identity-server/src/IdentityServer/Services/Default/DefaultEventSink.cs
@@ -24,7 +24,7 @@ public class DefaultEventSink : IEventSink
public DefaultEventSink(ILogger logger) => _logger = logger;
///
- public virtual Task PersistAsync(Event evt, CT ct)
+ public virtual Task PersistAsync(Event evt, Ct ct)
{
ArgumentNullException.ThrowIfNull(evt);
diff --git a/identity-server/src/IdentityServer/Services/Default/DefaultHandleGenerationService.cs b/identity-server/src/IdentityServer/Services/Default/DefaultHandleGenerationService.cs
index 17b8308b9..79fb0af84 100644
--- a/identity-server/src/IdentityServer/Services/Default/DefaultHandleGenerationService.cs
+++ b/identity-server/src/IdentityServer/Services/Default/DefaultHandleGenerationService.cs
@@ -13,5 +13,5 @@ namespace Duende.IdentityServer.Services;
public class DefaultHandleGenerationService : IHandleGenerationService
{
///
- public Task GenerateAsync(CT ct, int length = 32) => Task.FromResult(CryptoRandom.CreateUniqueId(length, CryptoRandom.OutputFormat.Hex));
+ public Task GenerateAsync(Ct ct, int length = 32) => Task.FromResult(CryptoRandom.CreateUniqueId(length, CryptoRandom.OutputFormat.Hex));
}
diff --git a/identity-server/src/IdentityServer/Services/Default/DefaultIdentityServerInteractionService.cs b/identity-server/src/IdentityServer/Services/Default/DefaultIdentityServerInteractionService.cs
index 866b2e5e6..ccea3bdc2 100644
--- a/identity-server/src/IdentityServer/Services/Default/DefaultIdentityServerInteractionService.cs
+++ b/identity-server/src/IdentityServer/Services/Default/DefaultIdentityServerInteractionService.cs
@@ -45,7 +45,7 @@ internal class DefaultIdentityServerInteractionService : IIdentityServerInteract
}
///
- public async Task GetAuthorizationContextAsync(string returnUrl, CT ct)
+ public async Task GetAuthorizationContextAsync(string returnUrl, Ct ct)
{
using var activity = Tracing.ServiceActivitySource.StartActivity("DefaultIdentityServerInteractionService.GetAuthorizationContext");
@@ -64,7 +64,7 @@ internal class DefaultIdentityServerInteractionService : IIdentityServerInteract
}
///