Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Sign In Control (Legacy)

Ff748709.note(en-us,MSDN.10).gifNote:
Current information about Live Connect is now available in the Windows Live Developer Center. The information in the following sections is provided for legacy purposes only.

The Sign In control uses Delegated Authentication to automate the sign-in process for users of Windows Live Messenger. If your application receives a sign-in consent token, the user can be signed in automatically. Your application can either redirect or make an AJAX call that stores the token in the site's database.

The following example shows how to insert a Sign In control in a webpage.

<msgr:sign-in
   on-consent-completed="my_ConsentCompletedCallbackHandler"
   size="medium"
   sign-in="blue">
</msgr:sign-in>

The following attributes are supported on the Sign In control.

Name Type Required Default Value Description

on-consent-completed

String

No

none

Sets an event handler that fires the on-consent-completed event. If the user grants consent to the application, the application receives a consent token. The application can store and use the token to automate the user's sign in process on Windows Live Messenger. The token value is stored in the event arguments for Microsoft.Live.UI.Messenger.SignInControl.consentCompleted.

size

small | medium | large

No

medium

Sets the size of the button. Uses the Microsoft.Live.UI.Messenger.SignInControl.size property.

theme

light | dark | blue

No

light

Sets the visual appearance of the button. Uses the Microsoft.Live.UI.Messenger.SignInControl.theme property.

Show:
© 2015 Microsoft