Skip to content

OnAuthenticationNeeded

event

Delphi
property OnAuthenticationNeeded: TOnAuthenticationNeeded read FOnAuthenticationNeeded write FOnAuthenticationNeeded;
C++Builder
__property TOnAuthenticationNeeded OnAuthenticationNeeded = {read=FOnAuthenticationNeeded, write=FOnAuthenticationNeeded};
typedef void __fastcall (__closure *TOnAuthenticationNeeded)(System::TObject* Sender, TAuthenticationType AuthenticationType, System::UnicodeString Realm, System::UnicodeString Server, System::UnicodeString &Username, System::UnicodeString &Password);
C#
public event OnAuthenticationNeededEventHandler OnAuthenticationNeeded;
public delegate void OnAuthenticationNeededEventHandler(object sender, TOnAuthenticationNeededEventArgs e);
VB.NET
Public Event OnAuthenticationNeeded As OnAuthenticationNeededEventHandler
Public Delegate Sub OnAuthenticationNeededEventHandler(sender As Object, e As TOnAuthenticationNeededEventArgs)
C++/Qt
void SetOnAuthenticationNeeded (TOnAuthenticationNeededCb OnAuthenticationNeededCb);
typedef void CALLBACK TOnAuthenticationNeededCb (void *Object, void *Sender, TAuthenticationType AuthenticationType, wchar_t *Realm, wchar_t *Server, wchar_t **Username, wchar_t **Password);

This TOnAuthenticationNeeded event occurs to pass a user name and password when an authentication is required, e.g. to send streaming to a publishing point.

Parameters:

Id: reserved

Realm: reports the domain name, if any

Server: reports the server name, if any

UserName: set this property with the user name needed for the authentication

Password: set this parameter with the password needed for the authentication