procedure SetAuthorization(AuthorizationRequired, WebAware: Boolean)
Set your AuthorizationRequired and WebAware options. As result you will receive OnAuthorizationChangedOk event.