1using System.Collections.Generic;
2using System.Threading.Tasks;
25 this.authenticationSchemes = AuthenticationSchemes;
55 ((User = v.ValueObject as
IUser) is
null) ||
62 string s = Obj as string;
63 string Tab = Request.
Header[
"X-TAB"];
65 if (
string.IsNullOrEmpty(Tab))
78 return this.authenticationSchemes;
The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repe...
The server understood the request, but is refusing to fulfill it. Authorization will not help and the...
static ForbiddenException AccessDenied(string ObjectId, string ActorId, string MissingPrivilege)
Returns a ForbiddenException object, and logs a entry in the event log about the event.
Base class for all HTTP authentication schemes, as defined in RFC-7235: https://datatracker....
Represents an HTTP request.
HttpRequestHeader Header
Request header.
string RemoteEndPoint
Remote end-point.
Variables Session
Contains session states, if the resource requires sessions, or null otherwise.
async Task< object > DecodeDataAsync()
Decodes data sent in request.
string ResourceName
Name of resource.
Represets a response of an HTTP client request.
Base class for all synchronous HTTP resources. A synchronous resource responds within the method hand...
Contains information about a variable.
virtual bool TryGetVariable(string Name, out Variable Variable)
Tries to get a variable object, given its name.
Web service that can be used to execute script on the server.
override bool HandlesSubPaths
If the resource handles sub-paths.
AdminService(string ResourceName, params HttpAuthenticationScheme[] AuthenticationSchemes)
Web service that can be used to execute script on the server.
override HttpAuthenticationScheme[] GetAuthenticationSchemes(HttpRequest Request)
Any authentication schemes used to authenticate users before access is granted to the corresponding r...
async Task POST(HttpRequest Request, HttpResponse Response)
Executes the POST method on the resource.
override bool UserSessions
If the resource uses user sessions.
bool AllowsPOST
If the POST method is allowed.
POST Interface for HTTP resources.
Basic interface for a user.
bool HasPrivilege(string Privilege)
If the user has a given privilege.