CSLA .NET

Vibrant discussion about CSLA .NET and using the framework to build great business applications.

WinRT and Authentication scenarios

rated by 0 users
Answered (Verified) This post has 1 verified answer | 5 Replies | 2 Followers

Top 50 Contributor
178 Posts
Tim posted on Tue, Jul 17 2012 8:54 AM

What is the most common authentication scenario that will be used by a WinRT (metro) app that needs to connect to a remote DP on a server?  I'm going back through the authentication section in the Using DataPortal e-book, and I'm wondering what most people are doing in their app's for authentication.

For background - I'm planning on using Windows Azure to host my remote DP and SQL database, so I'm not sure if that locks me in to one particular scenario.

Tim

Answered (Verified) Verified Answer

Top 10 Contributor
9,270 Posts
Verified by Tim

I haven't really explored this in detail yet. Thus far I've been using the WinRT and Live SDK ability to get at the user's Live ID and profile information to create a principal/identity object by using the local data portal.

Certainly you can use the same techniques used in Silverlight to get at a server-side identity (Windows or custom).

WinRT doesn't appear to have any System.Threading.Thread.CurrentUser like .NET - so it is much more like Silverlight in that regard.

Rocky

All Replies

Top 10 Contributor
9,270 Posts
Verified by Tim

I haven't really explored this in detail yet. Thus far I've been using the WinRT and Live SDK ability to get at the user's Live ID and profile information to create a principal/identity object by using the local data portal.

Certainly you can use the same techniques used in Silverlight to get at a server-side identity (Windows or custom).

WinRT doesn't appear to have any System.Threading.Thread.CurrentUser like .NET - so it is much more like Silverlight in that regard.

Rocky

Top 50 Contributor
178 Posts
Tim replied on Thu, Jul 19 2012 6:00 PM

Thanks.  I've only read a brief description on the Live SDK and I wonder if going that route would force me to have a separate way to authenticate if I also wanted to create an iPad app for the same content.  Does anyone know if the Live SDK is available to iPad apps?

I was looking at ASP.NET Membership, but I'll do more research on the Live SDK.

Tim

Top 50 Contributor
178 Posts
Tim replied on Thu, Jul 19 2012 8:21 PM

I guess I found an answer to my last question.  Per Microsoft's Live Connect site:

Mobile devices

The Live SDK is also available for Windows Phone, Android and iOS. The Live Connect APIs use open standards like OAuth 2.0, JSON, and XMPP, making them easy and familiar to work with.

Tim

Top 50 Contributor
178 Posts
Tim replied on Fri, Jul 20 2012 8:26 AM

Rocky, I know this is off topice to CSLA, but can you share how you associate a user authenticated with Live ID with the user profile you store in your own database?  In other words, once you authenticate the user via the Live SDK, what type of data do you use from the information returned by Live to then find that user's records in your database?  Right now, I have a UserId column in my tables defined as an Int, but perhaps I'll have to switch to something else.  Thanks.

Tim

Top 10 Contributor
9,270 Posts

I think the only fixed value is the email address? That's my assumption anyway.

Rocky

Page 1 of 1 (6 items) | RSS

Copyright (c) 2006-2010 Marimer LLC. All rights reserved.
Email admin@lhotka.net for support.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems