Discuss this help topic in SecureBlackbox Forum

TElHTTPSServer.OnAfterAuthorization

TElHTTPSServer     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


This event is fired after clent's authorization.

Declaration

[C#]
    event TSBHTTPAfterAuthorizationEvent OnAfterAuthorization;
    delegate void TSBHTTPAfterAuthorizationEvent(Object Sender, TElHTTPServerRequestParams RequestInfo, ref bool Accepted);

[VB.NET]
    Event OnAfterAuthorization As TSBHTTPAfterAuthorizationEvent
    Delegate Sub TSBHTTPAfterAuthorizationEvent(ByVal Sender As Object, ByVal RequestInfo As TElHTTPServerRequestParams, ByRef Accepted As Boolean)

[Pascal]
    property OnAfterAuthorization : TSBHTTPAfterAuthorizationEvent;
    TSBHTTPAfterAuthorizationEvent = procedure(Sender : TObject; RequestInfo : TElHTTPServerRequestParams; var Accepted : boolean) of object;

[C++]
    void get_OnAfterAuthorization(TSBHTTPAfterAuthorizationEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnAfterAuthorization(TSBHTTPAfterAuthorizationEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBHTTPAfterAuthorizationEvent)(void * _ObjectData, TObjectHandle Sender, TElHTTPServerRequestParamsHandle RequestInfo, int8_t &Accepted);

[PHP]
    TSBHTTPAfterAuthorizationEvent|callable|NULL get_OnAfterAuthorization()
    void set_OnAfterAuthorization(TSBHTTPAfterAuthorizationEvent|callable|NULL $Value)
    callable TSBHTTPAfterAuthorizationEvent(TObject $Sender, TElHTTPServerRequestParams $RequestInfo, bool &$Accepted)

[Java]
    TSBHTTPAfterAuthorizationEvent getOnAfterAuthorization();
    void setOnAfterAuthorization(TSBHTTPAfterAuthorizationEvent Value);
    TSBHTTPAfterAuthorizationEvent.Callback OnAfterAuthorization = new TSBHTTPAfterAuthorizationEvent.Callback() {
        public void TSBHTTPAfterAuthorizationEventCallback(TObject Sender, TElHTTPServerRequestParams RequestInfo, TSBBoolean Accepted) {
            //...
        }
    }

Parameters

  • RequestInfo - contains client's request parameters.
  • Accepted - set this parameter to true to serve the request, and to false to deny authorization.

Description

This event is fired each time after client authorization. The event handler should decide whether to serve the protected resource. It is a good idea to check the Authenticated property of RequestInfo inside the event handler.

See also:     OnAuthorizationDenied     OnAuthorizationSucceed     OnRequestBodyReceived    

Discuss this help topic in SecureBlackbox Forum