IWMPContentPartner::Authenticate method
Note This section describes functionality designed for use by online stores. Use of this functionality outside the context of an online store is not supported.
Syntax
HRESULT Authenticate(
BLOB userInfo,
BLOB pwdInfo
);
Parameters
userInfo
BLOB that contains encrypted user information.
pwdInfo
BLOB that contains encrypted password information.
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| Return code | Description |
|---|---|
|
The method succeeded. |
Remarks
Certain links on a discovery page have targets that should be displayed only after the user has been authenticated. The discovery page, Windows Media Player, and the online store's plug-in use the following steps to authenticate the user and display the target webpage:
- Script on a discovery page calls the External.authenticate method.
- Windows Media Player displays a dialog box to obtain a user name and password.
- Windows Media Player calls IWMPContentPartner::Authenticate, which initiates the authentication attempt and returns immediately.
- When the authentication attempt is complete, the online store's plug-in calls IWMPContentPartnerCallback::Notify, passing wmpcnAuthResult and a Boolean value that indicates whether the attempt was successful.
- If the authentication attempt was successful, Windows Media Player calls IWMPContentPartner::GetItemInfo, passing g_szItemInfo_AuthenticationSuccessURL, to obtain the URL of an authentication-success webpage. In this call, Windows Media Player passes the same index that the discovery page passed to the External.authenticate method.
- Windows Media Player displays the authentication-success webpage.
Requirements
| Minimum supported client | Windows Media Player 11 |
| Target Platform | Windows |
| Header | contentpartner.h |