Поделиться через


IPassportManager2 Interface

IPassportManager2 Interface

The IPassportManager2 interface is a secondary interface for the Passport Manager object. The Passport Manager object is a server-side object for Microsoft® .NET Passport single sign-in (SSI) service, which uses cookies and query string data as intermediaries for querying a central user store.

Accessing IPassportManager2 Methods from C++ Code

Header Files

The Passport header file passport.h can be found in the \include subdirectory. The Passport library file, passport.lib, can be found in the \lib\x86 subdirectory.

QueryInterface on Passport Manager Object

To access the IPassportManager2 interface, query for it in an already existing Passport Manager object. For information about object instantiation, see Passport Manager Object.

After the object is available, and the IID of IPassportManager2 is available from headers, call:

IUnknown* pII_IPassportManager2;
oPassportManager->QueryInterface(IID_IPassportManager2, &pII_IPassportManager2);
//free reference when done;

IPassportManager2 Interface Methods

IPassportManager2::AuthURL2 Returns a string containing the Login server URL for a user's domain, as well as optional information sent to the Login server in the query string.
IPassportManager2::LoginUser Logs the user on, either by outputting a 302 redirect URL, or initiating a .NET Passport-aware client authentication exchange.
IPassportManager2::LogoTag2 Returns an HTML snippet that includes an IMG source string for a .NET Passport link. The link image displays either Sign In if no valid Ticket cookie is detected or Sign Out if a valid Ticket cookie is detected. Each IMG source includes an associated HREF used to sign in or sign out, as appropriate.

Information

Implementation Passport Manager object
Inherits from IDispatch
Header and IDL files passport.h, passport.idl
Minimum operating systems Windows NT4 SP4 Server, Windows 2000 Server

See Also

IPassportManager Interface