Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Revision as of 05:57, 17 January 2014 by rgunawans (Talk | contribs)

Authenticating to Social Services using Infragistics

From Wiki
Jump to: navigation, search

This article explains how to use Infragistics Access Control, this control makes easier to get authenticate to Twitter, Facebook, LiveID and Google services '

WP Metro Icon Tools.png
WP Metro Icon WP8.png
Article Metadata
Tested with
SDK: Windows Phone 8.0 SDK
Devices(s): Tested on Lumia 720
Compatibility
Platform(s):
Windows Phone 8
Article
Created: (25 Jan 2014)
Last edited: rgunawans (17 Jan 2014)

Introduction

As a developer, sometimes we need to share our work to social media or if we want to develop an application that need Soc Med services, we have to create authentication to that services by our self. First of all, before we use Twitter/Facebook/Live ID or Google, make sure that we have application key.

The table below authentication providers and URL to register an application

Provider Name URL
Facebook https://developers.facebook.com/apps
Twitter https://dev.twitter.com/apps/new
Live ID https://manage.dev.live.com/AddApplication.aspx
Google https://code.google.com/apis/console/?pli=1

I will show how to use the Infragistics Access Control.

First, create new Project, choose Windows Phone App, enter the name of project File:New Project.jpg Find "XamAccessControl" in the toolbox and drag to MainPage.xaml File:AccessControl.jpg

Setting the control like my code to use Twitter Authentication <ig:XamAccessControl x:Name="accessCtrl" HorizontalAlignment="Left" Height="100" Margin="37,227,0,0" VerticalAlignment="Top" Width="100" >

               <ig:XamAccessControl.AuthenticationService>
                   <ig:AuthenticationService
                       Provider="Twitter"
                       ClientId="xxxxxx"
                       RedirectUri="http://www.dvlup.com"
                       ClientSecret="xxxxx"                        />
                   
               </ig:XamAccessControl.AuthenticationService>
           </ig:XamAccessControl>


Please note, the "Provider" property can be change to

  1. Twitter
  2. Facebook
  3. Live Id
  4. Google

and drag a button to activate authentication process and put below code:

accessCtrl.IsOpen = true;


Summary

Remove Category:Draft when the page is complete or near complete


The "platform categories" will be displayed here in preview only - Copy paste relevant categories into text here

Version Hint

Windows Phone: [[Category:Windows Phone]]
[[Category:Windows Phone 7.5]]
[[Category:Windows Phone 8]]

Nokia Asha: [[Category:Nokia Asha]]
[[Category:Nokia Asha Platform 1.0]]

Series 40: [[Category:Series 40]]
[[Category:Series 40 1st Edition]] [[Category:Series 40 2nd Edition]]
[[Category:Series 40 3rd Edition (initial release)]] [[Category:Series 40 3rd Edition FP1]] [[Category:Series 40 3rd Edition FP2]]
[[Category:Series 40 5th Edition (initial release)]] [[Category:Series 40 5th Edition FP1]]
[[Category:Series 40 6th Edition (initial release)]] [[Category:Series 40 6th Edition FP1]] [[Category:Series 40 Developer Platform 1.0]] [[Category:Series 40 Developer Platform 1.1]] [[Category:Series 40 Developer Platform 2.0]]

Symbian: [[Category:Symbian]]
[[Category:S60 1st Edition]] [[Category:S60 2nd Edition (initial release)]] [[Category:S60 2nd Edition FP1]] [[Category:S60 2nd Edition FP2]] [[Category:S60 2nd Edition FP3]]
[[Category:S60 3rd Edition (initial release)]] [[Category:S60 3rd Edition FP1]] [[Category:S60 3rd Edition FP2]]
[[Category:S60 5th Edition]]
[[Category:Symbian^3]] [[Category:Symbian Anna]] [[Category:Nokia Belle]]

Add categories below using category selector.

112 page views in the last 30 days.
×