Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
QuickLoginLegalIdAuthenticator.cs
1using Paiwise;
2using System.Threading.Tasks;
4
6{
11 {
15 public const string LegalIdAddressType = "LegalId";
16
20 public const string LegalIdDescriptionMarkdown = "The principal and recommended address type (*Legal ID*) is indicated by setting the `AddressType` parameter to `LegalId`. This is the identifier of the Legal ID of the user, which will be used to sign the signature request, allowing the Neuron to return a Bearer token with information about the authenticated user. Care should be taken to update this identifier over time, as the user updates their Legal Identity.";
21
26 : base()
27 {
28 }
29
33 public override string SupportedAddressType => LegalIdAddressType;
34
39
46 {
47 return string.Equals(RemoteIdentifier.AddressType, LegalIdAddressType, System.StringComparison.InvariantCultureIgnoreCase) ?
48 Grade.Excellent : Grade.NotAtAll;
49 }
50
56 public override Task<IRemoteAuthentication> CreateAuthentication(IRemoteIdentifier RemoteIdentifier)
57 {
58 return Task.FromResult<IRemoteAuthentication>(
59 new QuickLoginRemoteAuthentication(null, RemoteIdentifier.Address));
60 }
61 }
62}
Contains information about a remote identifier.
string AddressType
Remote Address Type, identifying the type of address used in Address.
string Address
Remote Address, identifying the remote party.
Interface for remote authentications.
Interface for remote identifiers.
Grade
Grade enumeration
Definition: Grade.cs:7