Naweed Akram's Blog
<sharing: Knowledge />
Windows 8/RT WebAuthenticationBroker view issue - Alternative

Doing oAuth in Windows 8 couldn’t have been any easier and simpler. Remember the old days of getting Access Tokens from providers such as Yammer, GitHub, Facebook, 500px etc. (you name it). You had to use browser windows, passing URLs, manage the state etc. Windows 8 make it as simple as the code below to do all the underlying work for you. All you have to do is use the WebAuthenticationBroker, which presents the oAuth dialog, manages user authorization and state, and returns the access token, all with a few lines of code (3-4 lines).

 

However, there is a small issue. Some oAuth site present login/authorization dialogs which exceed the area displayed by WebAuthenticationBroker. This post addresses the problem and provides an alternative.

More ...
Tags:  .NET,  C#,  Silverlight Viewed:  13241       Comments:  9      


XGENO.DBMapper - A new way of OR/DB Mapping

XGENO.DBMapper is a simple, easy-to-use and powerful OR Mapper (just 15KB) for your database queries. It is set of extension methods (on the SQL Connection), which execute a SQL query (simple, parameterized, stored procs etc.) and return the data as a list of .NET objects (classes that you have created).

 

Note: This is not a replacement for existing ORMs (Linq/NHibernate/XGENO.ORM etc.). This is useful when there are lots of stored procedures or dynamic SQL queries are involved, and performance is a critical factor.

More ...
Tags:  .NET,  C#,  VB.NET,  ASP.NET,  MVC,  Silverlight,  ORM Viewed:  3833       Comments:  1      


RSS Feed
Newsletter


Quick Links

Tags