Author Archives: cprakash

About cprakash

A developer, passionate about .Net, Architecture and Security.

LogViewer for Enterprise Library Database Logging

History At some point in my previous two project, I build the LogViewer application to view the logs generated by my app, most of the time is really easy to just go to database and query with select statement with … Continue reading

Posted in MVC, WebApi | Tagged , , , , , , | Leave a comment

Dynamic Profile ASP.NET – Update

I received a request about the uses of dynamic keyword in profile declaration and in fact it was valid that while declaring the profile object we should be using concrete profile object and not declaring it as dynamic and rather … Continue reading

Posted in MVC, Profile | Leave a comment

Dynamic Profile ASP.NET

Recently, I was trying to use ASP.NET Profile Provider for one of my application but soon ran into trouble due to compatibility issues with my CMS system and complexity involved. I decided to build a generic dynamic Profile class and … Continue reading

Posted in MVC, Profile | Tagged , | Leave a comment

Policy Based Authorization in Windows Identity Foundation (WIF) – Part II

Policy based authorization has been gaining ground lately though it is not fully adopted, XACML – 4 main components PAP is the Policy Administration Point This is where you administer the policies changing the security rules, and policies. This is … Continue reading

Posted in Security, WIF | Leave a comment

Policy Based Authorization in Windows Identity Foundation (WIF) – Part I

I wrote before about Claims based authentication here and a sample IP-STS to perform Authentication, but Authentication is not just enough for any application, it also requires Authorization, this is required to protect your resources and actions. Traditionally, its been … Continue reading

Posted in Security, WIF | Leave a comment

Developing an Active STS – A Fun Project

Lately, I have been playing around with WIF to build an Active STS. I didn’t have access to necessary tools to build this on .NET 4.5 and I used .NET 4.0 to start with, this difference is significant because WIF … Continue reading

Posted in WIF | Tagged , , , | 2 Comments

Identity in .NET 4.5 (aka WIF)

This article is based on the presentation given by Brock Allen and I would like to thanks him that he allowed me to use his presentation and code. Pleae refer his presentation here. http://brockallen.com/2012/10/16/demos-microsoft-devboston-windows-identity-foundation-in-net-4-5/ Traditional Approach to Authentication – Authentication … Continue reading

Posted in Security, WIF | Tagged , | 2 Comments

Tutorials – Introduction to ASP.NET MVC

For past few days, I have been training folks in my organization on ASP.NET MVC. I have uploaded the presentation from the session here – http://sdrv.ms/Xk1TrU Do let me know your feedback and check it frequently as I will be … Continue reading

Posted in MVC, Speaking | Tagged , | Leave a comment

Custom Error Handling in ASP.NET MVC

This post covers custom error and exception handling in ASP.NET MVC with more generic approach to satisfy the need of today’s development, today’s development doesn’t mean that we are going to handle the error in a different way than currently … Continue reading

Posted in MVC | Tagged , | 3 Comments

A simple Pdf ActionResult in MVC

Recently, I needed an ActionResult implementation to return the Pdf documents from my Controller Action to MVC views and it tooks few minutes to build the functionality on the existing FileResult. I decided to build a base class PdfResult to … Continue reading

Posted in MVC | Tagged , | 13 Comments