Back to product page

Authentication property

Determines if authentication is required to access the server.


WebAuthentications enumeration


  • Basic
object.Authentication [= value]
The Authentication(object,value) syntax has these parts:
objectAn expression evaluating to an object of type wodWebServer
valueWebAuthentications enumeration


This property defines if wodWebServer requires client authorization to be performed before he can actually access resources on the server. When set to AuthRequired, wodWebServer will check if authorization headers exist (or, if AuthenticationType property is set to AuthCertificate it will check if certificate is provided), and fire UserAuthenticate event giving you chance to authenticate client from your access list.

If this property is set to AuthOptional, wodWebServer will still check if authorization headers are provided, it will fire UserAuthenticate event - but Accept argument in that event will default to Allow - thus accepting connections unless you change Accept argument to Deny.