Back to product page

AuthenticationType property


Determines type of authentication supported by the server.

Type

WebAuthenticationTypes enumeration

Syntax

  • C#
  • VB.NET
WebAuthenticationTypes AuthenticationType {get; set; };

Property AuthenticationType As WebAuthenticationTypes

Remarks

This property defines authentication type wodWebServer.NET requires (and supports) to authenticate clients. You can set this property to any of above values in WebAuthenticationTypes enumeration, or their combination. If you set Authentication property to Required, client then *must* provide his credentials to access resources on your server. Failing to do so will cause 'Forbidden' response to be returned to him automatically - you will not even receive RequestDone event.

When client tries to authenticate, Authenticate event will fire where you must set Action argument to Accept or Deny. If you set it to Deny then wodWebServer will automatically redirect response to 'Forbidden' response. When set to Allow, wodWebServer will proceed as usual - firing RequestDone event to handle and send response.

Platforms

Windows