Export (0) Print
Expand All

Sign In Control

Ff749758.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 handles the process of signing in to a Windows Live enabled webpage. Using the Sign-in control, you can integrate the authentication and consent process into your site using little or no JavaScript code.

The following code example shows how to add a default Sign-in control to a webpage.

<wl:signin>
</wl:signin>

The following attributes are supported by the Sign-in control.

Name Type Required Default Value Description

buttonsize

small | large

No

large

Sets the size of the button to display.

signedintext

String

No

sign out

Sets the text that is displayed by the button when the user is signed in.

signedouttext

String

No

connect

Sets the text that is displayed by the button when the user is signed out.

theme

orange | white

No

orange

Sets the color theme to use for the control.

wlonly

Boolean

No

false

Sets whether the control should be visible only if the current user is a Windows Live user.

onsignin

Function

No

none

Sets the callback function to invoke when sign in is complete.

onsignout

Function

No

none

Sets the callback function to invoke when sign out is complete.

onbeforesignin

Function

No

none

Sets the callback function to invoke before the application displays the consent UI.

When the default Sign-in control is added to a page, it renders as shown in the following screenshot:

Sign In control
Show:
© 2014 Microsoft