Visual studio feeds

All Visual Studio blogs in one place

Subscribe

Enter your email address:

Delivered by FeedBurner

Increase your website traffic with Attracta.com

Google+

Contact

Email:
Subject:
Message:
Anti-spam: How many eyes has a typical person?

Follow us on FB

Search

ValidateAntiForgeryTokenAttribute and Ajax Requests

AddThis Social Bookmark Button
        Introduction:                    Cross-Site Request Forgery (CSRF or XSRF) is still in the top ten list of The Open Web Application Security Project (OWASP). Fortunately, ASP.NET MVC has built-in support to mitigate this attack since its earlier versions. The default ASP.NET MVC template include code to mitigate this attack. But if you are using ajax requests then you need to keep some points in your mind. In this article, I will tell you some tips that will help you when you are doing CSRF protection in your ajax requests.         Description:                         First tip is that when you send an ajax request to server then you
need to explicitly attach anti-forgery token with your request. Let say you have this form in your ASP.NET MVC view, @using (Html.BeginForm("Action", "Controller", FormMethod.Post, new { })) { @Html.AntiForgeryToken() ....................... .......................                     Then you can easily include/attach the request anti-forgery token with your ajax request using these lines of javascript(assuming that you are using jQuery), ...(Read whole news on source site)

How to secure your WCF service and authenticate users

AddThis Social Bookmark Button
There are several steps involved in making your WCF service secure, and ensure that clients consuming your service are properly authenticated.  WCF uses BasicHttpBinding out-of-the-box, which generates SOAP envelopes (messages) for each request.  BasicHttpBinding works over standard HTTP, which is great for completely open general purpose services, but not good if you are sending sensitive […]

APress Deal of the Day 19/July/2014 - SharePoint 2013 User's Guide

AddThis Social Bookmark Button
Originally posted on: http://geekswithblogs.net/TATWORTH/archive/2014/07/19/apress-deal-of-the-day-19july2014---sharepoint-2013-users.aspxToday’s $10 of the day at http://www.apress.com/9781430248330 is SharePoint 2013 User's Guide. “The SharePoint 2013 User's Guide is the perfect companion for getting the most out of the newest version of Microsoft's collaboration and productivity platform.”

SLAB design considerations

AddThis Social Bookmark Button
In my previous post, I talked about the features available in the Semantic Logging APplication Blobk. In this post, I will show you a class with regular trace logging, and talk about things to consider when converting it to implement the Semantic Application Logging Block (SLAB) to create structured logging. You can just do a […]

England Swing of the WilderWorldTour

AddThis Social Bookmark Button
Next week I start a short swing around southern and south-midlands England. I had hoped to do more events in England, but this short swing of four user groups is all I’m doing in England (though I’ll be in close-by Scotland in early August and Ireland in September). These events will cover a variety of topics including Node.js, ASP.NET Web API v2 and AngularJS. These are the events starting next Thursday. July 24th: Bristol .NET User Group (Bristol, UK) July 28th: Smart Dev's User Group (near Hereford, UK) July 29th: Gloucestershire
.NET User Group (near Gloucester, UK) July 30th: .NET Notts Meetup (Nottingham, UK) If you want to go, please sign up (via the links) so that they have good head-counts. Love to see you all make it and ask the hard questions during these events! Cheers!
This work by

Home