Internet Direct (Indy)
Home
PreviousUpNext
TIdCustomHTTP.OnSelectAuthorization Event

Event handler triggered when the client selects an authentication mechanism for the connection.

Pascal
property OnSelectAuthorization: TIdOnSelectAuthorization;
Parameters 
Description 
Sender 
HTTP client generating the event notification.
 
AuthenticationClass 
Authentication class to use for the connection.
 
AuthInfo 
Header values to use in authectication. 

OnSelectAuthorization is a TIdOnSelectAuthorization property that represents the event handler triggered when the HTTP client chooses an Authentication method and class for authorizing a connection. 

OnSelectAuthorization is triggered when a Request needs Authentication using a supported Authentication method for the WWWAuthenticate headers found in Response. OnSelectAuthorization can be used to set the class instance in Auth used for authenticating the client Request based on header values found in AuthInfo. 

OnSelectAuthorization is used prior to triggering the OnAuthorization event handler for the client connection.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.