aboutsummaryrefslogtreecommitdiff
path: root/Libs
diff options
context:
space:
mode:
Diffstat (limited to 'Libs')
-rw-r--r--Libs/VNLib.Plugins.Essentials.Oauth/src/Applications/ApplicationStore.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Libs/VNLib.Plugins.Essentials.Oauth/src/Applications/ApplicationStore.cs b/Libs/VNLib.Plugins.Essentials.Oauth/src/Applications/ApplicationStore.cs
index 8374c21..da70a17 100644
--- a/Libs/VNLib.Plugins.Essentials.Oauth/src/Applications/ApplicationStore.cs
+++ b/Libs/VNLib.Plugins.Essentials.Oauth/src/Applications/ApplicationStore.cs
@@ -180,7 +180,7 @@ namespace VNLib.Plugins.Essentials.Oauth.Applications
/// </summary>
/// <param name="record">The new record to create</param>
/// <returns>The result of the operation</returns>
- public override async Task<ERRNO> CreateAsync(UserApplication record)
+ public override async Task<ERRNO> CreateAsync(UserApplication record, CancellationToken cancellation = default)
{
record.RawSecret = GenerateSecret();
//Hash the secret
@@ -188,7 +188,7 @@ namespace VNLib.Plugins.Essentials.Oauth.Applications
record.ClientId = GenerateClientID();
record.SecretHash = (string)secretHash;
//Wait for the rescord to be created before wiping the secret
- return await base.CreateAsync(record);
+ return await base.CreateAsync(record, cancellation);
}
/// <summary>
@@ -276,7 +276,7 @@ namespace VNLib.Plugins.Essentials.Oauth.Applications
}
//DO NOT ALLOW PAGINATION YET
- public override Task<int> GetPageAsync(ICollection<UserApplication> collection, int page, int limit)
+ public override Task<int> GetPageAsync(ICollection<UserApplication> collection, int page, int limit, CancellationToken cancellation = default)
{
throw new NotSupportedException();
}