Discuss this help topic in SecureBlackbox Forum

TElHTTPSServer.OnGetUserPassword

TElHTTPSServer     See also     


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


This event is fired each time a user tries to authenticate to the OAuth authorization server.

Declaration

[C#]
    event TSBOnGetUserPasswordEvent OnGetUserPassword;
    delegate void TSBOnGetUserPasswordEvent(Object Sender, TElHTTPServerRequestParams ReqParams, ref string Password, ref bool Accept);

[VB.NET]
    Event OnGetUserPassword As TSBOnGetUserPasswordEvent
    Delegate Sub TSBOnGetUserPasswordEvent(ByVal Sender As Object, ByVal ReqParams As TElHTTPServerRequestParams, ByRef Password As String, ByRef Accept As Boolean)

[Pascal]
    property OnGetUserPassword : TSBOnGetUserPasswordEvent;
    TSBOnGetUserPasswordEvent = procedure(Sender : TObject; ReqParams : TElHTTPServerRequestParams; var Password : string; var Accept : boolean) of object;

[C++]
    void get_OnGetUserPassword(TSBOnGetUserPasswordEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnGetUserPassword(TSBOnGetUserPasswordEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBOnGetUserPasswordEvent)(void * _ObjectData, TObjectHandle Sender, TElHTTPServerRequestParamsHandle ReqParams, char * pcPassword, int32_t &szPassword, int8_t &Accept);

[PHP]
    TSBOnGetUserPasswordEvent|callable|NULL get_OnGetUserPassword()
    void set_OnGetUserPassword(TSBOnGetUserPasswordEvent|callable|NULL $Value)
    callable TSBOnGetUserPasswordEvent(TObject $Sender, TElHTTPServerRequestParams $ReqParams, string &$Password, bool &$Accept)

[Java]
    TSBOnGetUserPasswordEvent getOnGetUserPassword();
    void setOnGetUserPassword(TSBOnGetUserPasswordEvent Value);
    TSBOnGetUserPasswordEvent.Callback OnGetUserPassword = new TSBOnGetUserPasswordEvent.Callback() {
        public void TSBOnGetUserPasswordEventCallback(TObject Sender, TElHTTPServerRequestParams ReqParams, TSBString Password, TSBBoolean Accept) {
            //...
        }
    }

Parameters

  • ReqParams - HTTP request params.
  • Password - user password.
  • Accept - set this property to true if the password is correct, and authentication is accepted.
  • pcPassword - user password.
  • szPassword - the length of pcPassword.

Description

This event is fired by TElHTTPSServer in the OAuth protocol flow each time a client tries to authenticate to the server.

See also:     UseOAuth2    

Discuss this help topic in SecureBlackbox Forum