diff --git a/src/OpenIddict.Abstractions/Managers/IOpenIddictApplicationManager.cs b/src/OpenIddict.Abstractions/Managers/IOpenIddictApplicationManager.cs
index 2c877a8d..fe08d276 100644
--- a/src/OpenIddict.Abstractions/Managers/IOpenIddictApplicationManager.cs
+++ b/src/OpenIddict.Abstractions/Managers/IOpenIddictApplicationManager.cs
@@ -1,4 +1,12 @@
-using System;
+/*
+ * Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
+ * See https://github.com/openiddict/openiddict-core for more information concerning
+ * the license and the contributors participating to this project.
+ */
+
+#nullable disable
+
+using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.ComponentModel.DataAnnotations;
@@ -75,7 +83,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.
@@ -96,7 +104,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.
@@ -107,7 +115,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.
@@ -163,7 +171,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.
@@ -174,7 +182,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.
@@ -185,7 +193,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.
@@ -196,7 +204,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.
@@ -218,7 +226,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
@@ -231,7 +239,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
@@ -245,7 +253,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.
@@ -414,7 +422,7 @@ namespace OpenIddict.Abstractions
///
/// A that can be used to monitor the asynchronous operation.
///
- ValueTask UpdateAsync(object application, string? secret, CancellationToken cancellationToken = default);
+ ValueTask UpdateAsync(object application, string secret, CancellationToken cancellationToken = default);
///
/// Validates the application to ensure it's in a consistent state.
diff --git a/src/OpenIddict.Abstractions/Managers/IOpenIddictAuthorizationManager.cs b/src/OpenIddict.Abstractions/Managers/IOpenIddictAuthorizationManager.cs
index d333aae6..4d6f111c 100644
--- a/src/OpenIddict.Abstractions/Managers/IOpenIddictAuthorizationManager.cs
+++ b/src/OpenIddict.Abstractions/Managers/IOpenIddictAuthorizationManager.cs
@@ -1,4 +1,12 @@
-using System;
+/*
+ * Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
+ * See https://github.com/openiddict/openiddict-core for more information concerning
+ * the license and the contributors participating to this project.
+ */
+
+#nullable disable
+
+using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.ComponentModel.DataAnnotations;
@@ -154,7 +162,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.
@@ -173,7 +181,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.
@@ -213,7 +221,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.
@@ -235,7 +243,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.
@@ -246,7 +254,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.
@@ -257,7 +265,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.
@@ -359,7 +367,7 @@ namespace OpenIddict.Abstractions
///
/// A that can be used to monitor the asynchronous operation.
///
- ValueTask SetApplicationIdAsync(object authorization, string? identifier, CancellationToken cancellationToken = default);
+ ValueTask SetApplicationIdAsync(object authorization, string identifier, CancellationToken cancellationToken = default);
///
/// Tries to revoke an authorization.
diff --git a/src/OpenIddict.Abstractions/Managers/IOpenIddictScopeManager.cs b/src/OpenIddict.Abstractions/Managers/IOpenIddictScopeManager.cs
index 26bee840..67fcca84 100644
--- a/src/OpenIddict.Abstractions/Managers/IOpenIddictScopeManager.cs
+++ b/src/OpenIddict.Abstractions/Managers/IOpenIddictScopeManager.cs
@@ -1,4 +1,12 @@
-using System;
+/*
+ * Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
+ * See https://github.com/openiddict/openiddict-core for more information concerning
+ * the license and the contributors participating to this project.
+ */
+
+#nullable disable
+
+using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.ComponentModel.DataAnnotations;
@@ -80,7 +88,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.
@@ -91,7 +99,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.
@@ -147,7 +155,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.
@@ -169,7 +177,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.
@@ -191,7 +199,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
@@ -204,7 +212,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
@@ -218,7 +226,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
@@ -231,7 +239,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
@@ -245,7 +253,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.
@@ -256,7 +264,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 b3adb411..ba889d5a 100644
--- a/src/OpenIddict.Abstractions/Managers/IOpenIddictTokenManager.cs
+++ b/src/OpenIddict.Abstractions/Managers/IOpenIddictTokenManager.cs
@@ -1,4 +1,12 @@
-using System;
+/*
+ * Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
+ * See https://github.com/openiddict/openiddict-core for more information concerning
+ * the license and the contributors participating to this project.
+ */
+
+#nullable disable
+
+using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
@@ -130,7 +138,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.
@@ -142,7 +150,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.
@@ -161,7 +169,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.
@@ -201,7 +209,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.
@@ -234,7 +242,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.
@@ -245,7 +253,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 reference identifier associated with a token.
@@ -258,7 +266,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.
@@ -269,7 +277,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.
@@ -280,7 +288,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.
@@ -291,7 +299,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.
@@ -384,7 +392,7 @@ namespace OpenIddict.Abstractions
///
/// A that can be used to monitor the asynchronous operation.
///
- ValueTask SetApplicationIdAsync(object token, string? identifier, CancellationToken cancellationToken = default);
+ ValueTask SetApplicationIdAsync(object token, string identifier, CancellationToken cancellationToken = default);
///
/// Sets the authorization identifier associated with a token.
@@ -395,7 +403,7 @@ namespace OpenIddict.Abstractions
///
/// A that can be used to monitor the asynchronous operation.
///
- ValueTask SetAuthorizationIdAsync(object token, string? identifier, CancellationToken cancellationToken = default);
+ ValueTask SetAuthorizationIdAsync(object token, string identifier, CancellationToken cancellationToken = default);
///
/// Tries to extend the specified token by replacing its expiration date.