Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
QuickLoginJidAuthenticator.cs
1using Paiwise;
2using System.Threading.Tasks;
4
6{
11 {
15 public const string JidAddressType = "JID";
16
20 public const string JidDescriptionMarkdown =
21 "An alternative address type is indicated by setting the `AddressType` " +
22 "parameter to `JID`, identifying the *Jabber ID* of the user instead of " +
23 "the user's Legal ID. This method is not recommended, as it can be used to " +
24 "communicate with the user without first granting permission. It might also " +
25 "leak personal information about the user, without consent. But it can be " +
26 "used for development or testing purposes, or when the information is public. " +
27 "When using the `JID` address type, the Neuron hosting the account must be " +
28 "of build `2025-12-30` or later.";
29
34 : base()
35 {
36 }
37
41 public override string SupportedAddressType => JidAddressType;
42
47
54 {
55 return string.Equals(RemoteIdentifier.AddressType, JidAddressType, System.StringComparison.InvariantCultureIgnoreCase) ?
56 Grade.Excellent : Grade.NotAtAll;
57 }
58
64 public override Task<IRemoteAuthentication> CreateAuthentication(IRemoteIdentifier RemoteIdentifier)
65 {
66 return Task.FromResult<IRemoteAuthentication>(
67 new QuickLoginRemoteAuthentication(RemoteIdentifier.Address, null));
68 }
69 }
70}
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