TSparkleBasicAuthMiddleware Class
Component that adds HTTP Basic authentication to a Sparkle server dispatcher.
Remarks
Drop this component on a form or data module and link it to the server dispatcher to authenticate incoming requests using the HTTP Basic scheme. Use the OnAuthenticate event to validate credentials and build the user identity.
Syntax
Unit: Sparkle.Comp.BasicAuthMiddleware
TSparkleBasicAuthMiddleware = class(TSparkleMiddleware);
Constructors
| Name | Description |
|---|---|
| Create | Creates a new Basic authentication middleware component owned by the specified component. |
Properties
| Name | Description |
|---|---|
| Realm | Gets or sets the realm reported in the WWW-Authenticate challenge header sent with 401 responses. |
Events
| Name | Description |
|---|---|
| OnAuthenticate | The event invoked to authenticate each request from its Basic credentials. |