Skip to Content
Pro ASP.NET Web API Security: Securing ASP.NET Web API
book

Pro ASP.NET Web API Security: Securing ASP.NET Web API

by Badrinarayanan Lakshmiraghavan
March 2013
Intermediate to advanced
416 pages
12h 55m
English
Apress

Overview

ASP.NET Web API is a key part of ASP.NET MVC 4 and the platform of choice for building RESTful services that can be accessed by a wide range of devices. Everything from JavaScript libraries to RIA plugins, RFID readers to smart phones can consume your services using platform-agnostic HTTP.

With such wide accessibility, securingyour code effectively needs to be a top priority. You will quickly find that the WCF security protocols you're familiar with from .NET (WS-* and similar)are less suitable than they once were in this new environment; proving themselves cumbersome and limited in terms of the standards they can work with.

Fortunately, ASP.NET Web API provides asimple robust security solution of its own that fits neatly within the ASP.NET MVC programming model and secures your code without the need for SOAP meaningthat there is no limit to the range of devices that it can work with – if it can understand HTTP then it can be secured by Web API. These SOAP-less security techniques are the focus of this book.

What you'll learn

  • Identity management and cryptography

  • HTTP basic and digest authentication and Windows authentication

  • HTTP advanced concepts such as web caching, ETag, and CORS

  • Ownership factors of API keys, client X.509 certificates, and SAML tokens

  • Simple Web Token (SWT) and signed and encrypted JSON Web Token (JWT)

  • OAuth 2.0 from the ground up using JWT as the bearer token

  • OAuth 2.0 authorization codes and implicit grants using DotNetOpenAuth

  • Two-factor authentication using Google Authenticator

  • OWASP Top Ten risks for 2013

  • Who this book is for

    No prior experience of .NET-security is needed to read this book. All security related concepts will be introduced from first-principles and developed to the point where you can use them confidently in a professional environment. A goodworking knowledge and experience of C# and the .NET framework are the onlypre-requisites to benefit from this book.

    Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
    and much more.

    Read now

    Unlock full access

    More than 5,000 organizations count on O’Reilly

    AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

    QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
    Julian F.
    Head of Cybersecurity
    QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
    Addison B.
    Field Engineer
    QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
    Amir M.
    Data Platform Tech Lead
    QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
    Mark W.
    Embedded Software Engineer

    You might also like

    ASP.NET Web API Security Essentials

    ASP.NET Web API Security Essentials

    Rajesh Gunasundaram
    Mastering ASP.NET Web API

    Mastering ASP.NET Web API

    Mithun Pattankar, Malendra Hurbuns
    Pro ASP.NET Web API: HTTP Web Services in ASP.NET

    Pro ASP.NET Web API: HTTP Web Services in ASP.NET

    Tugberk Ugurlu, Alexander Zeitler, Ali Kheyrollahi
    Practical ASP.NET Web API

    Practical ASP.NET Web API

    Badrinarayanan Lakshmiraghavan

    Publisher Resources

    ISBN: 9781430257820Purchase book