3using System.Threading.Tasks;
24 : base(
"Account/PrepareRemoteQuickLogin",
25 new KeyValuePair<Type,
Expression>(typeof(Dictionary<string, object>), new
Expression(jsonPattern)),
59 v.ValueObject is IoTBroker.Legal.MFA.QuickLoginUser QuickLoginUser &&
60 !
string.IsNullOrEmpty(QuickLoginUser.LegalId.Id))
62 LegalId = QuickLoginUser.LegalId.Id;
70 {
"legalId", LegalId }
A Named dictionary is a dictionary, with a local name and a namespace. Use it to return content that ...
The server understood the request, but is refusing to fulfill it. Authorization will not help and the...
Represents an HTTP request.
SessionVariables Session
Contains session states, if the resource requires sessions, or null otherwise.
Represets a response of an HTTP client request.
Task Return(Exception ex)
Returns an error to the client.
The server is currently unable to handle the request due to a temporary overloading or maintenance of...
override bool TryGetVariable(string Name, out Variable Variable)
Tries to get a variable object, given its name.
Represents a case-insensitive string.
string Value
String-representation of the case-insensitive string. (Representation is case sensitive....
static bool IsNullOrEmpty(CaseInsensitiveString value)
Indicates whether the specified string is null or an CaseInsensitiveString.Empty string.
Static class managing loading of resources stored as embedded resources or in content files.
static string LoadResourceAsText(string ResourceName)
Loads a text resource from an embedded resource.
Class managing a script expression.
Contains information about a variable.
CaseInsensitiveString LatestIdentity
Last Legal Identity approved for account. Note: Identity object might not be approved any longer.
Account Account
Account object.
Allows the client to login.
Prepares the Neuron for a remote quick-login on a remote domain.
override async Task POST(HttpRequest Request, HttpResponse Response, Dictionary< string, IElement > Parameters)
Executes the POST method on the resource.
PrepareRemoteQuickLogin()
Prepares the Neuron for a remote quick-login on a remote domain.
override bool UserSessions
If the resource uses user sessions.
Abstract base class for agent resources supporting the POST method.
static AccountUser AssertUserAuthenticated(HttpRequest Request)
Makes sure the request is made by an authenticated API user.
const string AgentNamespace
https://waher.se/Schema/BrokerAgent.xsd