SAML SSO Authentication

What is SAML? First what is SAML? It is mainly use for authentication. It’s main role is to standardize web applications on authenticating and transfer data between the identity provider and the service provider. It improves user experience and the user will only remember one password through out the enterprise systems. OAuth vs SAML? The primary difference between OAuth and SAML is that we mainly use SAML for authentication and OATH for authorization....

January 12, 2017 · 4 min

ValidateAntiForgeryToken: Purpose and Usage

In simple explanation found on Microsoft docs: ValidateAntiForgeryToken represents an attribute that is used to prevent forgery of a request. In other terms this attribute is used to prevent cross-site forgery attacks. Cross site forgery is an attack that posts to your site/form to attempt to submit a hiddent content using an authenticated user’s credential. Let’s have a realistic scenario of this cross site forgery. Supposed you are logged in to your online banking account....

September 17, 2013 · 2 min

Visual Studio Project Types

Today, I encountered an error/bug on my Visual Studio. Working with the MVC project I am doing, while trying to add a scaffolding controller. I can’t seem to find the ‘Add Controller’ in the context menu of Controller folder. Sometimes a simple Clean all, Rebuild all works easily. Sometimes it’s just a bug on Visual Studio itself and a simple reboot of VS or reboot of your machine will work....

November 19, 2013 · 1 min

WPF Implementing Validation INotifyDataErrorInfo

INotifyDataErrorInfo Before diving into implementation of INotifyDataErrorInfo, make sure you have a good grasp of WPF Data Binding. 3 important usage/returns of INotifyDataErrorInfo interface: HasErrors - bool property that is binded when the Model has any error. GetErrors - IEnumberable ErrorsChanged - Event Let’s create a model (Person class) that implements INotifyDataErrorInfo class Person : INotifyDataErrorInfo { public event EventHandler<DataErrorsChangedEventArgs> ErrorsChanged; public System.Collections.IEnumerable GetErrors(string propertyName) { } public bool HasErrors { get { return true; } } } Let’s define a dictionary errors...

December 12, 2013 · 1 min

Legacy Systems: To Maintain, Refactor or Rewrite?

When I first started as a software engineer in my first professional job. We cater different applications designed using .NET, Python and PHP. And one of the big task for me at that time is handling a legacy system. Different organization and companies have different definition of legacy code/system. In our organization, a legacy system is old, ugly and difficult to maintain. No tests, unusable comments, no documentations, or whatsover, if there’s any, it’s of no use....

July 4, 2013 · 3 min