Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
RemoteAuthenticationEventArgs.cs
1using System;
3
4namespace Paiwise
5{
9 public class RemoteAuthenticationEventArgs : EventArgs
10 {
17 params KeyValuePair<string, object>[] JwtClaims)
18 {
19 this.State = State;
20 this.Ok = true;
21 this.ErrorMessage = null;
22 this.LogAuditFailure = false;
23 this.JwtClaims = JwtClaims;
24 }
25
33 bool LogAuditFailure)
34 {
35 this.State = State;
36 this.Ok = false;
37 this.ErrorMessage = ErrorMessage;
38 this.LogAuditFailure = LogAuditFailure;
39 this.JwtClaims = Array.Empty<KeyValuePair<string, object>>();
40 }
41
45 public object State { get; }
46
50 public bool Ok { get; }
51
55 public string ErrorMessage { get; }
56
60 public bool LogAuditFailure { get; }
61
65 public KeyValuePair<string, object>[] JwtClaims { get; }
66 }
67}
Event arguments for Remote Authentication callback methods.
string ErrorMessage
Error message, if remote authentication failed.
bool Ok
If remote authentication was successful or not.
RemoteAuthenticationEventArgs(object State, string ErrorMessage, bool LogAuditFailure)
Event arguments for Remote Authentication callback methods.
RemoteAuthenticationEventArgs(object State, params KeyValuePair< string, object >[] JwtClaims)
Event arguments for Remote Authentication callback methods.
KeyValuePair< string, object >[] JwtClaims
JWT Claims to include in token generated.
bool LogAuditFailure
If audit failure should be logged.