diff --git a/src/OpenIddict.Abstractions/Managers/IOpenIddictApplicationManager.cs b/src/OpenIddict.Abstractions/Managers/IOpenIddictApplicationManager.cs
index fe08d276..a9ffaea0 100644
--- a/src/OpenIddict.Abstractions/Managers/IOpenIddictApplicationManager.cs
+++ b/src/OpenIddict.Abstractions/Managers/IOpenIddictApplicationManager.cs
@@ -4,8 +4,6 @@
* the license and the contributors participating to this project.
*/
-#nullable disable
-
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
@@ -83,7 +81,7 @@ namespace OpenIddict.Abstractions
///
/// A that can be used to monitor the asynchronous operation.
///
- ValueTask CreateAsync(object application, string secret, CancellationToken cancellationToken = default);
+ ValueTask CreateAsync(object application, string? secret, CancellationToken cancellationToken = default);
///
/// Removes an existing application.
@@ -104,7 +102,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the client application corresponding to the identifier.
///
- ValueTask FindByClientIdAsync(string identifier, CancellationToken cancellationToken = default);
+ ValueTask FindByClientIdAsync(string identifier, CancellationToken cancellationToken = default);
///
/// Retrieves an application using its unique identifier.
@@ -115,7 +113,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the client application corresponding to the identifier.
///
- ValueTask FindByIdAsync(string identifier, CancellationToken cancellationToken = default);
+ ValueTask FindByIdAsync(string identifier, CancellationToken cancellationToken = default);
///
/// Retrieves all the applications associated with the specified post_logout_redirect_uri.
@@ -171,7 +169,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the client identifier associated with the application.
///
- ValueTask GetClientIdAsync(object application, CancellationToken cancellationToken = default);
+ ValueTask GetClientIdAsync(object application, CancellationToken cancellationToken = default);
///
/// Retrieves the client type associated with an application.
@@ -182,7 +180,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the client type of the application (by default, "public").
///
- ValueTask GetClientTypeAsync(object application, CancellationToken cancellationToken = default);
+ ValueTask GetClientTypeAsync(object application, CancellationToken cancellationToken = default);
///
/// Retrieves the consent type associated with an application.
@@ -193,7 +191,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the consent type of the application (by default, "explicit").
///
- ValueTask GetConsentTypeAsync(object application, CancellationToken cancellationToken = default);
+ ValueTask GetConsentTypeAsync(object application, CancellationToken cancellationToken = default);
///
/// Retrieves the display name associated with an application.
@@ -204,7 +202,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the display name associated with the application.
///
- ValueTask GetDisplayNameAsync(object application, CancellationToken cancellationToken = default);
+ ValueTask GetDisplayNameAsync(object application, CancellationToken cancellationToken = default);
///
/// Retrieves the localized display names associated with an application.
@@ -226,7 +224,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the unique identifier associated with the application.
///
- ValueTask GetIdAsync(object application, CancellationToken cancellationToken = default);
+ ValueTask GetIdAsync(object application, CancellationToken cancellationToken = default);
///
/// Retrieves the localized display name associated with an application
@@ -239,7 +237,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the matching localized display name associated with the application.
///
- ValueTask GetLocalizedDisplayNameAsync(object application, CancellationToken cancellationToken = default);
+ ValueTask GetLocalizedDisplayNameAsync(object application, CancellationToken cancellationToken = default);
///
/// Retrieves the localized display name associated with an application
@@ -253,7 +251,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the matching localized display name associated with the application.
///
- ValueTask GetLocalizedDisplayNameAsync(object application, CultureInfo culture, CancellationToken cancellationToken = default);
+ ValueTask GetLocalizedDisplayNameAsync(object application, CultureInfo culture, CancellationToken cancellationToken = default);
///
/// Retrieves the permissions associated with an application.
diff --git a/src/OpenIddict.Abstractions/Managers/IOpenIddictAuthorizationManager.cs b/src/OpenIddict.Abstractions/Managers/IOpenIddictAuthorizationManager.cs
index f6734c70..d8824a97 100644
--- a/src/OpenIddict.Abstractions/Managers/IOpenIddictAuthorizationManager.cs
+++ b/src/OpenIddict.Abstractions/Managers/IOpenIddictAuthorizationManager.cs
@@ -4,8 +4,6 @@
* the license and the contributors participating to this project.
*/
-#nullable disable
-
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
@@ -162,7 +160,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the authorization corresponding to the identifier.
///
- ValueTask FindByIdAsync(string identifier, CancellationToken cancellationToken = default);
+ ValueTask FindByIdAsync(string identifier, CancellationToken cancellationToken = default);
///
/// Retrieves all the authorizations corresponding to the specified subject.
@@ -181,7 +179,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the application identifier associated with the authorization.
///
- ValueTask GetApplicationIdAsync(object authorization, CancellationToken cancellationToken = default);
+ ValueTask GetApplicationIdAsync(object authorization, CancellationToken cancellationToken = default);
///
/// Executes the specified query and returns the first element.
@@ -232,7 +230,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the unique identifier associated with the authorization.
///
- ValueTask GetIdAsync(object authorization, CancellationToken cancellationToken = default);
+ ValueTask GetIdAsync(object authorization, CancellationToken cancellationToken = default);
///
/// Retrieves the scopes associated with an authorization.
@@ -254,7 +252,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the status associated with the specified authorization.
///
- ValueTask GetStatusAsync(object authorization, CancellationToken cancellationToken = default);
+ ValueTask GetStatusAsync(object authorization, CancellationToken cancellationToken = default);
///
/// Retrieves the subject associated with an authorization.
@@ -265,7 +263,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the subject associated with the specified authorization.
///
- ValueTask GetSubjectAsync(object authorization, CancellationToken cancellationToken = default);
+ ValueTask GetSubjectAsync(object authorization, CancellationToken cancellationToken = default);
///
/// Retrieves the type associated with an authorization.
@@ -276,7 +274,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the type associated with the specified authorization.
///
- ValueTask GetTypeAsync(object authorization, CancellationToken cancellationToken = default);
+ ValueTask GetTypeAsync(object authorization, CancellationToken cancellationToken = default);
///
/// Determines whether the specified scopes are included in the authorization.
diff --git a/src/OpenIddict.Abstractions/Managers/IOpenIddictScopeManager.cs b/src/OpenIddict.Abstractions/Managers/IOpenIddictScopeManager.cs
index 67fcca84..d9107d94 100644
--- a/src/OpenIddict.Abstractions/Managers/IOpenIddictScopeManager.cs
+++ b/src/OpenIddict.Abstractions/Managers/IOpenIddictScopeManager.cs
@@ -4,8 +4,6 @@
* the license and the contributors participating to this project.
*/
-#nullable disable
-
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
@@ -88,7 +86,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the scope corresponding to the identifier.
///
- ValueTask FindByIdAsync(string identifier, CancellationToken cancellationToken = default);
+ ValueTask FindByIdAsync(string identifier, CancellationToken cancellationToken = default);
///
/// Retrieves a scope using its name.
@@ -99,7 +97,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the scope corresponding to the specified name.
///
- ValueTask FindByNameAsync(string name, CancellationToken cancellationToken = default);
+ ValueTask FindByNameAsync(string name, CancellationToken cancellationToken = default);
///
/// Retrieves a list of scopes using their name.
@@ -155,7 +153,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the description associated with the specified scope.
///
- ValueTask GetDescriptionAsync(object scope, CancellationToken cancellationToken = default);
+ ValueTask GetDescriptionAsync(object scope, CancellationToken cancellationToken = default);
///
/// Retrieves the localized descriptions associated with an scope.
@@ -177,7 +175,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the display name associated with the scope.
///
- ValueTask GetDisplayNameAsync(object scope, CancellationToken cancellationToken = default);
+ ValueTask GetDisplayNameAsync(object scope, CancellationToken cancellationToken = default);
///
/// Retrieves the localized display names associated with an scope.
@@ -199,7 +197,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the unique identifier associated with the scope.
///
- ValueTask GetIdAsync(object scope, CancellationToken cancellationToken = default);
+ ValueTask GetIdAsync(object scope, CancellationToken cancellationToken = default);
///
/// Retrieves the localized description associated with an scope
@@ -212,7 +210,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the matching localized description associated with the scope.
///
- ValueTask GetLocalizedDescriptionAsync(object scope, CancellationToken cancellationToken = default);
+ ValueTask GetLocalizedDescriptionAsync(object scope, CancellationToken cancellationToken = default);
///
/// Retrieves the localized description associated with an scope
@@ -226,7 +224,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the matching localized description associated with the scope.
///
- ValueTask GetLocalizedDescriptionAsync(object scope, CultureInfo culture, CancellationToken cancellationToken = default);
+ ValueTask GetLocalizedDescriptionAsync(object scope, CultureInfo culture, CancellationToken cancellationToken = default);
///
/// Retrieves the localized display name associated with an scope
@@ -239,7 +237,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the display name associated with the scope.
///
- ValueTask GetLocalizedDisplayNameAsync(object scope, CancellationToken cancellationToken = default);
+ ValueTask GetLocalizedDisplayNameAsync(object scope, CancellationToken cancellationToken = default);
///
/// Retrieves the localized display name associated with an scope
@@ -253,7 +251,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the display name associated with the scope.
///
- ValueTask GetLocalizedDisplayNameAsync(object scope, CultureInfo culture, CancellationToken cancellationToken = default);
+ ValueTask GetLocalizedDisplayNameAsync(object scope, CultureInfo culture, CancellationToken cancellationToken = default);
///
/// Retrieves the name associated with a scope.
@@ -264,7 +262,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the name associated with the specified scope.
///
- ValueTask GetNameAsync(object scope, CancellationToken cancellationToken = default);
+ ValueTask GetNameAsync(object scope, CancellationToken cancellationToken = default);
///
/// Retrieves the resources associated with a scope.
diff --git a/src/OpenIddict.Abstractions/Managers/IOpenIddictTokenManager.cs b/src/OpenIddict.Abstractions/Managers/IOpenIddictTokenManager.cs
index 4d80308a..1acfe65c 100644
--- a/src/OpenIddict.Abstractions/Managers/IOpenIddictTokenManager.cs
+++ b/src/OpenIddict.Abstractions/Managers/IOpenIddictTokenManager.cs
@@ -4,8 +4,6 @@
* the license and the contributors participating to this project.
*/
-#nullable disable
-
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
@@ -138,7 +136,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the token corresponding to the unique identifier.
///
- ValueTask FindByIdAsync(string identifier, CancellationToken cancellationToken = default);
+ ValueTask FindByIdAsync(string identifier, CancellationToken cancellationToken = default);
///
/// Retrieves the list of tokens corresponding to the specified reference identifier.
@@ -150,7 +148,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the tokens corresponding to the specified reference identifier.
///
- ValueTask FindByReferenceIdAsync(string identifier, CancellationToken cancellationToken = default);
+ ValueTask FindByReferenceIdAsync(string identifier, CancellationToken cancellationToken = default);
///
/// Retrieves the list of tokens corresponding to the specified subject.
@@ -169,7 +167,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the application identifier associated with the token.
///
- ValueTask GetApplicationIdAsync(object token, CancellationToken cancellationToken = default);
+ ValueTask GetApplicationIdAsync(object token, CancellationToken cancellationToken = default);
///
/// Executes the specified query and returns the first element.
@@ -209,7 +207,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the authorization identifier associated with the token.
///
- ValueTask GetAuthorizationIdAsync(object token, CancellationToken cancellationToken = default);
+ ValueTask GetAuthorizationIdAsync(object token, CancellationToken cancellationToken = default);
///
/// Retrieves the creation date associated with a token.
@@ -242,7 +240,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the unique identifier associated with the token.
///
- ValueTask GetIdAsync(object token, CancellationToken cancellationToken = default);
+ ValueTask GetIdAsync(object token, CancellationToken cancellationToken = default);
///
/// Retrieves the payload associated with a token.
@@ -253,7 +251,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the payload associated with the specified token.
///
- ValueTask GetPayloadAsync(object token, CancellationToken cancellationToken = default);
+ ValueTask GetPayloadAsync(object token, CancellationToken cancellationToken = default);
///
/// Retrieves the redemption date associated with a token.
@@ -277,7 +275,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the reference identifier associated with the specified token.
///
- ValueTask GetReferenceIdAsync(object token, CancellationToken cancellationToken = default);
+ ValueTask GetReferenceIdAsync(object token, CancellationToken cancellationToken = default);
///
/// Retrieves the status associated with a token.
@@ -288,7 +286,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the status associated with the specified token.
///
- ValueTask GetStatusAsync(object token, CancellationToken cancellationToken = default);
+ ValueTask GetStatusAsync(object token, CancellationToken cancellationToken = default);
///
/// Retrieves the subject associated with a token.
@@ -299,7 +297,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the subject associated with the specified token.
///
- ValueTask GetSubjectAsync(object token, CancellationToken cancellationToken = default);
+ ValueTask GetSubjectAsync(object token, CancellationToken cancellationToken = default);
///
/// Retrieves the token type associated with a token.
@@ -310,7 +308,7 @@ namespace OpenIddict.Abstractions
/// A that can be used to monitor the asynchronous operation,
/// whose result returns the token type associated with the specified token.
///
- ValueTask GetTypeAsync(object token, CancellationToken cancellationToken = default);
+ ValueTask GetTypeAsync(object token, CancellationToken cancellationToken = default);
///
/// Determines whether a given token has the specified status.