Enables both Windows Store apps and desktop apps to use Live to authenticate users by using their Microsoft account. After authentication, apps can get back a JSON token with an ID that can be used for that user with your application.
Other than authentication, apps can also request user permission to communicate using Windows Live Messenger, access a user's social network, and even retrieve photos from Microsoft SkyDrive from within the application. For your app to access this info, it must first get the signed-in user's consent. After the user provides consent, apps receive an access token they can then use with the Live service REST APIS to get user-consented data. Learn more about using the Live Connect APIs.
Members
The Windows.Security.Authentication.OnlineId namespace has these types of members:
Classes
The Windows.Security.Authentication.OnlineId namespace has these classes.
| Class | Description |
|---|---|
| OnlineIdAuthenticator | Provides an app with the ability to start the authentication request to get JavaScript Object Notation (JSON) tokens to use with your service or request tickets that can be used to get data that the user has consented to for your app using the Live ConnectAPI. |
| OnlineIdServiceTicket | Contains the ticket that is obtained after the user authenticates to this app or has provided consent to access user data stored in Live. |
| OnlineIdServiceTicketRequest | Provides the ability for an app to specify the service and policy that is used to authenticate a Live user to obtain identity properties and tickets. |
| SignOutUserOperation | Allows users to sign out of your app. |
| UserAuthenticationOperation | Asynchronously gets the user's identity and corresponding tickets and properties. |
| UserIdentity | Contains the ID, tickets, and other information associated with a user |
Enumerations
The Windows.Security.Authentication.OnlineId namespace has these enumerations.
| Enumeration | Description |
|---|---|
| CredentialPromptType | Provides the ability to control when to show or hide the credential prompt user interface. This includes the user interface for the app to collect user consent to access data stored in Live. The user must see the user interface in order for the app to obtain any user data, if not app will see an error when they try to obtain user data. |
Remarks
The Desktop Experience feature must be installed with Windows Server 2012 to experience printing in Windows Store apps.
Requirements
|
Minimum supported client | Windows 8 |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Minimum supported phone | Windows Phone 8 |
|
Namespace |
|
|
Metadata |
|
Build date: 3/14/2013