Web.HTTPApp.TWebAuthorizer
Delphi
TWebAuthorizer = class(TCustomWebAuthorizer)
C++
class PASCALIMPLEMENTATION TWebAuthorizer : public TCustomWebAuthorizer
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| class | public | Web.HTTPApp.pas Web.HTTPApp.hpp |
Web.HTTPApp | Web.HTTPApp |
Description
TCustomWebAuthorizer is a WebBroker authorizer component implementing IWebAuthorizer interface.
Web.HTTPApp.TWebAuthorizer inherits from Web.HTTPApp.TCustomWebAuthorizer. All content below this line refers to Web.HTTPApp.TCustomWebAuthorizer.
TCustomWebAuthorizer is a WebBroker authorizer component implementing IWebAuthorizer interface.
The Zones property defines the list of access zones on the website. Each zone determines whether requests are allowed anonymously or require authentication, and may also specify required user roles.
For each incoming request, the appropriate zone is determined by matching the request path. The zone then governs whether the user must be authenticated and whether the request is authorized to access the resource. When a zone is not found, then the request is authorized.
Use OnAuthorize event handler to override the result of authorization. When it fails, then the request is redirected to GET UnauthorizedURL.