Discuss this help topic in SecureBlackbox Forum

TElSimpleOAuth2Client.OnLaunchBrowser

TElSimpleOAuth2Client     See also     


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


This event is fired to show the login page to the end-user.

Declaration

[C#]
    event TSBSimpleOAuth2LaunchBrowserEvent OnLaunchBrowser;
    delegate void TSBSimpleOAuth2LaunchBrowserEvent(Object Sender, string URL);

[VB.NET]
    Event OnLaunchBrowser As TSBSimpleOAuth2LaunchBrowserEvent
    Delegate Sub TSBSimpleOAuth2LaunchBrowserEvent(ByVal Sender As Object, ByVal URL As String)

[Pascal]
    property OnLaunchBrowser : TSBSimpleOAuth2LaunchBrowserEvent;
    TSBSimpleOAuth2LaunchBrowserEvent = procedure(Sender : TObject; const URL : string) of object;

[C++]
    void get_OnLaunchBrowser(TSBSimpleOAuth2LaunchBrowserEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnLaunchBrowser(TSBSimpleOAuth2LaunchBrowserEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBSimpleOAuth2LaunchBrowserEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcURL, int32_t szURL);

[PHP]
    TSBSimpleOAuth2LaunchBrowserEvent|callable|NULL get_OnLaunchBrowser()
    void set_OnLaunchBrowser(TSBSimpleOAuth2LaunchBrowserEvent|callable|NULL $Value)
    callable TSBSimpleOAuth2LaunchBrowserEvent(TObject $Sender, string $URL)

[Java]
    TSBSimpleOAuth2LaunchBrowserEvent getOnLaunchBrowser();
    void setOnLaunchBrowser(TSBSimpleOAuth2LaunchBrowserEvent Value);
    TSBSimpleOAuth2LaunchBrowserEvent.Callback OnLaunchBrowser = new TSBSimpleOAuth2LaunchBrowserEvent.Callback() {
        public void TSBSimpleOAuth2LaunchBrowserEventCallback(TObject Sender, String URL) {
            //...
        }
    }

Parameters

  • URL - the URL received from the authorization server.
  • pcURL - the URL received from the authorization server.
  • szURL - the length of pcURL.

Description

This event is fired by TElSimpleOAuth2Client when authorization server requires user credentials. In a simple example, the handler would open a web browser and direct user to the login page.

See also:     AuthURL    

Discuss this help topic in SecureBlackbox Forum