Topic Path: Symbol Reference > Classes > TIdCustomHTTP Class > TIdCustomHTTP Events > OnSelectAuthorization Event
ContentsIndexHome
PreviousUpNext
TIdCustomHTTP.OnSelectAuthorization Event

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

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.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.