Last modified: July 12, 2010
Applies to: Office 2007 | Outlook 2010 | SharePoint Server 2010
Logs on to the social network site by using forms-based authentication.
The OSC calls the LogonWeb method only if the provider indicates that it supports forms-based authentication. The provider indicates that it requires forms-based authentication by setting useLogonWebAuth as true in the XML for capabilities. If the provider sets useLogonWebAuth as false, the OSC uses basic authentication and calls the ISocialSession::Logon method.
Logging on to a social network site by using forms-based authentication involves calling the LogonWeb and ISocialSession::GetLogonUrl methods in a specific order:
The OSC calls LogonWeb the first time, passing null to the connectIn parameter.
The provider raises the OSC_E_AUTH_ERROR error to the OSC.
The OSC next calls GetLogonUrl.
The provider returns the appropriate URL to a logon page in the GetLogonUrl method.
The OSC uses the URL returned by GetLogonUrl to display the forms-based logon page.
The OSC then calls LogonWeb a second time, passing the URL to the logon form in the connectIn parameter.
If authentication succeeds, the provider returns logon credentials in the connectOut parameter to the OSC. If authentication fails, the provider raises the OSC_E_AUTH_ERROR error to the OSC.
If the OSC provider supports logging on using cached credentials, it specifies useLogonCached as true in the capabilities XML. The provider should place any logon credentials in the connectOut string that the provider wants the OSC to store across connections. The OSC does not interpret the connectOut string. After the OSC verifies that useLogonCached is true, the OSC encrypts the string for security before storing it in the Windows registry. The OSC passes this string to the connectIn parameter on subsequent attempts to log on to the social network by calling ISocialSession2::LogonCached.
For information about error codes, see Outlook Social Connector Provider Error Codes.