Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IRemoteAuthentication.cs
1using System;
2using System.Threading.Tasks;
3using Waher.Events;
5
6namespace Paiwise
7{
11 public interface IRemoteAuthentication
12 {
16 string Key { get; }
17
22 Task<bool> IsValidAddress();
23
28 Task<bool> IsLegalIdAvailable();
29
35 Task<bool> IsPermitted(IUser User);
36
48 Task<Uri> GetChallengeUri(string Purpose, string RemoteEndPoint);
49
60 Task<string> Start(string Purpose, string RemoteEndPoint,
61 EventHandlerAsync<RemoteAuthenticationEventArgs> Callback, object State);
62 }
63}
Interface for remote authentications.
Task< Uri > GetChallengeUri(string Purpose, string RemoteEndPoint)
Gets a Challenge URI to send to the requestor of the remote authentication.
Task< string > Start(string Purpose, string RemoteEndPoint, EventHandlerAsync< RemoteAuthenticationEventArgs > Callback, object State)
Starts the remote authentication process.
string Key
Key identifying the remote authentication.
Task< bool > IsLegalIdAvailable()
Checks if a Legal Id is available for the remote ID.
Task< bool > IsValidAddress()
Checks if the remote address is valid.
Task< bool > IsPermitted(IUser User)
Checks is the remote address is permitted to perform the requested operation.
Basic interface for a user.
Definition: IUser.cs:7