Discuss this help topic in SecureBlackbox Forum

TElOAuth2Client.Process

TElOAuth2Client     See also     


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


Processes the responses received from the authorization server.

Declaration

[C#]
    bool Process(TElStringList ResponseHeader, byte[] ResponseBody, out int Method, out string URL, TElStringList RequestHeader, out byte[] RequestBody);
    TElOAuth2Request Process(TElStringList ResponseHeader, byte[] ResponseBody);

[VB.NET]
    Function Process(ByVal ResponseHeader As TElStringList, ByVal ResponseBody As Byte(), Out Method As Integer, Out URL As String, ByVal RequestHeader As TElStringList, Out RequestBody As Byte()) As Boolean
    Function Process(ByVal ResponseHeader As TElStringList, ByVal ResponseBody As Byte()) As TElOAuth2Request

[Pascal]
    function Process(ResponseHeader : TElStringList; ResponseBody : ByteArray; out Method : Integer; out URL : string; RequestHeader : TElStringList; out RequestBody : ByteArray) : Boolean;
    function Process(ResponseHeader : TElStringList; ResponseBody : ByteArray; NewRequest : TElOAuth2Request) : Boolean; overload;

[C++]
    bool Process(TElStringList &ResponseHeader, const std::vector<uint8_t> &ResponseBody, int32_t &Method, std::string &URL, TElStringList &RequestHeader, std::vector<uint8_t> &RequestBody);
    bool Process(TElStringList *ResponseHeader, const std::vector<uint8_t> &ResponseBody, int32_t &Method, std::string &URL, TElStringList *RequestHeader, std::vector<uint8_t> &RequestBody);
    bool Process(TElStringList &ResponseHeader, const std::vector<uint8_t> &ResponseBody, TElOAuth2Request &NewRequest);
    bool Process(TElStringList *ResponseHeader, const std::vector<uint8_t> &ResponseBody, TElOAuth2Request *NewRequest);

[PHP]
    bool Process(TElStringList $ResponseHeader, array of byte|string|NULL $ResponseBody, integer &$Method, string &$URL, TElStringList $RequestHeader, array of byte|string &$RequestBody)
    bool Process(TElStringList $ResponseHeader, array of byte|string|NULL $ResponseBody, TElOAuth2Request $NewRequest)

[Java]
    TElOAuth2Request process(TElStringList ResponseHeader, byte[] ResponseBody);

Parameters

  • Method - the new HTTP request method.
  • NewRequest - returns the new request to the authorization server.
  • RequestBody - contains the request body.
  • RequestHeader - contains the request header.
  • ResponseBody - the body of the response to be processed.
  • ResponseHeader - the header of the response to be processed.
  • URL - specifies the URL of the new request.

Return value

    Returns True (null/Nothing in .NET and Java) if the authorization is granted, and False (new request) otherwise.

Description

    Call this method each time to parse a response received from the authorization server. If the access token is granted, the method returns True; otherwise it returns False and creates a new request to be sent to the server.

See also:     Apply     Start    

Discuss this help topic in SecureBlackbox Forum