Table of Contents

TBasicAuthMiddleware.Create Constructor

Overloads

TBasicAuthMiddleware.Create

Creates a new middleware instance with no authentication callback and the default realm.

Syntax

Unit: Sparkle.Middleware.BasicAuth

constructor TBasicAuthMiddleware.Create;

See also

TBasicAuthMiddleware.Create(TAuthenticateBasicProc)

Creates a new middleware instance with the specified authentication callback and the default realm.

Syntax

Unit: Sparkle.Middleware.BasicAuth

constructor TBasicAuthMiddleware.Create(AAuthenticateProc: TAuthenticateBasicProc);

Parameters

<-> Parameter Type Description
AAuthenticateProc TAuthenticate​Basic​Proc The callback used to validate the user name and password of each request.

See also

TBasicAuthMiddleware.Create(TAuthenticateBasicProc, string)

Creates a new middleware instance with the specified authentication callback and realm.

Syntax

Unit: Sparkle.Middleware.BasicAuth

constructor TBasicAuthMiddleware.Create(AAuthenticateProc: TAuthenticateBasicProc; const ARealm: string);

Parameters

<-> Parameter Type Description
AAuthenticateProc TAuthenticate​Basic​Proc The callback used to validate the user name and password of each request.
const ARealm string The realm reported in the WWW-Authenticate challenge header.

See also