Telerik UI for Windows Phone by Progress

RadCloudLogin supports several OAuth 2.0 providers allowing you to easily integrate a Social Network authentication mechanism into your Windows Phone application. The mechanism is implemented in a way that completely automates the whole login procedure: from opening a Web Browser to acquiring an access token and passing it to the currently activated Cloud Service Provider.

Setting up a Social Login provider for RadCloudLogin

RadCloudLogin exposes a simplified API which you can use to integrate Social Login support for your Cloud enabled Windows Phone application. Currently, the following OAuth 2.0 providers are supported by RadCloudLogin:

  • Facebook
  • LiveId
  • Google

RadCloudLogin allows you to activate any of these OAuth 2.0 providers. To do so, you need to use the LoginProviders collection exposed by RadCloudLogin. This collection holds item inheriting from the LoginProviderInfo type. Currently the following implementations are available:

  • FacebookLoginProvider - used to activate the Facebook login support.
  • LiveIdLoginProvider - used to activate the LiveId login support.
  • GoogleLoginProvider - used to activate the Google login support.

The following snippet demonstrates how Social Login providers are defined in XAML

<telerikCloudControls:RadCloudLogin x:Name="cloudLogin" SuccessNavigationUri="/MainPage.xaml">
        <telerikCloudControls:LiveIDLoginProvider />
        <telerikCloudControls:FacebookLoginProvider />
        <telerikCloudControls:GoogleLoginProvider />

The following screenshot demonstrates how your RadCloudLogin instance will look like:

When tapping on the icon of one of the Login Providers, a new page will be opened containing a WebBrowser control. Depending on the chosen provider, the corresponding user credentials page will be opened in the browser asking your users for authentication. After successful authentication, a new web page will be opened asking your user to grant permissions for your application in the context of the Social Login provider. These permissions will allow your app to access the required user information to perform the login operation. After the needed permissions are granted by your end user, the browser will be closed and the RadCloudLogin instance will try to login with the currently initialized Cloud Provider using the provided Social Login access token.