Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IAuthenticationService.cs
1using System;
3using System.Linq;
4using System.Text;
5using System.Threading.Tasks;
7
9{
10 [DefaultImplementation(typeof(AuthenticationService))]
11 public interface IAuthenticationService : IDisposable, IAsyncDisposable
12 {
13 Task<string?> InputPasswordAsync(AuthenticationPurpose purpose);
14 Task<bool> AuthenticateUserAsync(AuthenticationPurpose purpose, bool force = false);
15 Task CheckUserBlockingAsync();
16 Task<bool> CheckPasswordAndUnblockUserAsync(string password);
17 Task<long> GetCurrentPasswordCounterAsync();
18
19 // (Add other relevant authentication methods)
20 }
21
22}
AuthenticationPurpose
Purpose for requesting the user to authenticate itself.