Protecting WCF Data Services using OAuth

by Eddie Z. Lin May 20 2011 02:00
Regarding this topic, there is a nice post by Alex James. One thing that I am wondering after reading the article, is that the demo rely on HttpModule and HttpContext.Current directly. For the purpose of test automation, I would like to avoid this if at all possible. And Andrew Arnott ships an example of securing WCF service using OAuth, in his DotNetOpenAuth library, which use ServiceAuthorizationManager and IAuthorizationPolicy to inject identities. This approach is more flexible in my case, and I don’t have to worry about combining this with Form authentication, which is used by the existing part of the application.

In this post, I am going to build a demo WCF Data Service which is protected by OAuth using ServiceAuthorizationManager. [More]

Screen Capturing with Silverlight Applications

by Eddie Z. Lin May 05 2011 00:29
The user of a Silverlight application is keep complaining about he couldn't capture pictures of the application. This post compares the behaviors of browser screen capturing extensions with windowless parameter on and off. [More]

TFS Event Filtering, Logical Expressions and Expression Tree

by Eddie Z. Lin April 19 2011 09:37
In TFS, we can filter the server events by using Visual Studio Event Filter Language (VSEFL). Obviously, VSEFL is a variation of logical expression. On the other hand, since C# 3.0 introduces Expression Tree, I am always seeking for a lightweight library can translate logical expressions to Expression tree, and vice versa. So that the program can manipulate the expression easily, and then evaluate it as Lambda expression. However, the VSEFL parser is hidden inside TFS’ assemblies. This post will present a way to implement a parser for translating logical expressions, which is used to support VSEFL in the this project. [More]

Event Notification Plugin for TFS 2010

by Eddie Z. Lin March 22 2011 23:50
Couple days ago, I published the Team Alert project on CodePlex. It is a server side extension for TFS 2010, which allows you sending E-Mail notifications to any person field in the event, regardless the field contain a SID, account name or display name. Of course, you may configure it to send notification to fixed E-Mail addresses too. [More]

Masking Links in Comment (BlogEngine.NET)

by Eddie Z. Lin March 20 2011 02:05
Recently, I start getting spam comments, and some of them are smart enough to pass the filters. As these comments have been validated, they are likely suitable to be displayed. But if they contain links in the content, I don’t want to the show the links before I checked them. In the other word, I want to mask the links before I add the corresponding domain into whitelist. [More]

Using WCF Data Service Operations in Silverlight

by Eddie Z. Lin March 15 2011 00:52
WCF Data Services use OData protocol to expose data over the Internet, which makes integrating other systems much easier. Everything looks fine, until me trying to use WCF Data Services instead of WCF RIA Services in Silverlight application - The client won't generate and service operation. The good news is, we still able to consume service operations without writing raw HTTP requests.

This post will describes how to supply parameters to operations exposure by WCF Data Service. [More]

Email Alerts in Team Foundation Server

by Eddie Z. Lin March 09 2011 03:54
If you ever wonder how to send an E-Mail notification to a user participating in the event in TFS, the solution would be a little bit tricky for a flexible, extensible mechanism for subscription and notification. One of the easiest ways to achieve this is using the Event Service to listen to the event, and then send the notification. [More]

Comsuming WCF Services With Android

by Eddie Z. Lin May 10 2010 04:39
It seems processing XML is too heavy for mobile devices. Android did not provide any tool to help consuming SOAP web service. But as Android bundled with org.apache.http and org.json packages, it is relative simple to consume RESTful WCF services.

The following sections describe the steps to create RESTfule WCF services and the Android client to consume the services. [More]

A Silverlight Text Diff Control

by Eddie Z. Lin January 12 2010 12:53
Text diff tool is really useful for checking the updates of versioning files. On the web, it is widely used in wiki systems to see the changes of articles. It may also useful for tracing forum posts, page updates of CMS, etc.

This article will describes how to create a simple text diff control in Silverlight. Before going into the details, this is screen shot of our text diff control. [More]

Converting XPS to PDF Programmatically

by Eddie Z. Lin January 04 2010 06:02
I am working on a simple utility tool which pulls data from database and then generates reports as E-Mail attachments. An additional requirement is to exam the reports before sending them out. Hence, I want a document format that meets these criteria. [More]

Month List

Latest Comments

Comment RSS