Progress uses IAuthenticate to bind to secured Web page This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
This article was previously published under Q156905 SUMMARY
The Progress.exe sample from the ActiveX SDK, Internet Client SDK, and MSDN
Online Web Workshop demonstrates how to use a URL moniker to asynchronously
bind to data from a remote site on the Internet or an intranet. This Knowledge
Base sample extends the original Progress by handling the case where
authentication is required to access secured data.
MORE INFORMATIONThe following file is available for download from the Microsoft Download Center: Download the Progress.exe package now. (http://download.microsoft.com/download/ie5/progress/1/win98/en-us/progress.exe)Progress.exe (http://download.microsoft.com/download/ie5/progress/1/win98/en-us/progress.exe)
For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:
119591 (http://support.microsoft.com/kb/119591/) How to obtain Microsoft support files from online services
Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file.
Handling authentication requests from a URL moniker requires that the URL
moniker host implement a bind status callback object which exposes both the
IBindStatusCallback interface and the IAuthenticate interface. The sample
uses multiple inheritance to expose these interfaces on the same object.
The IAuthenticate interface consists of a single method, Authenticate. The sample implements IAuthenticate::Authenticate as follows:
When the URL moniker attempts to bind to the object specified in the call
to CreateURLMoniker, it determines whether or not the object is secured. If
the object is secured, the URL moniker queries the bind status callback
object for IAuthenticate. The URL moniker queries for IAuthenticate through
the IBindStatusCallback interface pointer registered with the bind context
used in the binding operation.
This implementation of Authenticate retrieves the username and password from the dialog controls and returns them to the URL moniker if the username is non-NULL. Otherwise, the sample returns a valid window handle. The URL moniker uses this handle as the parent window handle in a call to the InternetErrorDlg WININET API. InternetErrorDlg presents the user with a dialog box requesting a user name and password required to access the secured data. To demonstrate how a URL moniker requests authentication information from its host, following these steps:
APPLIES TO
| Article Translations
|



Back to the top
