ASP.NET Web API Security Essentials

Nonfiction, Computers, Internet, Security, Programming, Programming Languages
Cover of the book ASP.NET Web API Security Essentials by Rajesh Gunasundaram, Packt Publishing
View on Amazon View on AbeBooks View on Kobo View on B.Depository View on eBay View on Walmart
Author: Rajesh Gunasundaram ISBN: 9781785883224
Publisher: Packt Publishing Publication: July 4, 2016
Imprint: Packt Publishing Language: English
Author: Rajesh Gunasundaram
ISBN: 9781785883224
Publisher: Packt Publishing
Publication: July 4, 2016
Imprint: Packt Publishing
Language: English

Take the security of your ASP.NET Web API to the next level using some of the most amazing security techniques around

About This Book

  • This book has been completely updated for ASP.NET Web API 2.0 including the new features of ASP.NET Web API such as Cross-Origin Resource Sharing (CORS) and OWIN self-hosting
  • Learn various techniques to secure ASP.NET Web API, including basic authentication using authentication filters, forms, Windows Authentication, external authentication services, and integrating ASP.NET's Identity system
  • An easy-to-follow guide to enable SSL, prevent Cross-Site Request Forgery (CSRF) attacks, and enable CORS in ASP.NET Web API

Who This Book Is For

This book is intended for anyone who has previous knowledge of developing ASP.NET Web API applications. Good working knowledge and experience with C# and.NET Framework are prerequisites for this book.

What You Will Learn

  • Secure your web API by enabling Secured Socket Layer (SSL)
  • Manage your application's user accounts by integrating ASP.NET's Identity system
  • Ensure the security of your web API by implementing basic authentication
  • Implement forms and Windows authentication to secure your web API
  • Use external authentication such as Facebook and Twitter to authenticate a request to a web API
  • Protect your web API from CSRF attacks
  • Enable CORS in your web API to explicitly allow some cross-origin requests while rejecting others
  • Fortify your web API using OAuth2

In Detail

This book incorporates the new features of ASP.NET Web API 2 that will help you to secure an ASP.NET Web API and make a well-informed decision when choosing the right security mechanism for your security requirements.

We start by showing you how to set up a browser client to utilize ASP.NET Web API services. We then cover ASP.NET Web API's security architecture, authentication, and authorization to help you secure a web API from unauthorized users. Next, you will learn how to use SSL with ASP.NET Web API, including using SSL client certificates, and integrate the ASP.NET Identity system with ASP.NET Web API.

We'll show you how to secure a web API using OAuth2 to authenticate against a membership database using OWIN middleware. You will be able to use local logins to send authenticated requests using OAuth2. We also explain how to secure a web API using forms authentication and how users can log in with their Windows credentials using integrated Windows authentication. You will come to understand the need for external authentication services to enable OAuth/OpenID and social media authentication. We'll then help you implement anti-Cross-Site Request Forgery (CSRF) measures in ASP.NET Web API.

Finally, you will discover how to enable Cross-Origin Resource Sharing (CORS) in your web API application.

Style and approach

Each chapter is dedicated to a specific security technique, in a task-based and easy-to-follow way. Most of the chapters are accompanied with source code that demonstrates the step-by-step guidelines of implementing the technique, and includes an explanation of how each technique works.

View on Amazon View on AbeBooks View on Kobo View on B.Depository View on eBay View on Walmart

Take the security of your ASP.NET Web API to the next level using some of the most amazing security techniques around

About This Book

Who This Book Is For

This book is intended for anyone who has previous knowledge of developing ASP.NET Web API applications. Good working knowledge and experience with C# and.NET Framework are prerequisites for this book.

What You Will Learn

In Detail

This book incorporates the new features of ASP.NET Web API 2 that will help you to secure an ASP.NET Web API and make a well-informed decision when choosing the right security mechanism for your security requirements.

We start by showing you how to set up a browser client to utilize ASP.NET Web API services. We then cover ASP.NET Web API's security architecture, authentication, and authorization to help you secure a web API from unauthorized users. Next, you will learn how to use SSL with ASP.NET Web API, including using SSL client certificates, and integrate the ASP.NET Identity system with ASP.NET Web API.

We'll show you how to secure a web API using OAuth2 to authenticate against a membership database using OWIN middleware. You will be able to use local logins to send authenticated requests using OAuth2. We also explain how to secure a web API using forms authentication and how users can log in with their Windows credentials using integrated Windows authentication. You will come to understand the need for external authentication services to enable OAuth/OpenID and social media authentication. We'll then help you implement anti-Cross-Site Request Forgery (CSRF) measures in ASP.NET Web API.

Finally, you will discover how to enable Cross-Origin Resource Sharing (CORS) in your web API application.

Style and approach

Each chapter is dedicated to a specific security technique, in a task-based and easy-to-follow way. Most of the chapters are accompanied with source code that demonstrates the step-by-step guidelines of implementing the technique, and includes an explanation of how each technique works.

More books from Packt Publishing

Cover of the book Dynamics 365 Business Central Development Quick Start Guide by Rajesh Gunasundaram
Cover of the book MEAN Web Development by Rajesh Gunasundaram
Cover of the book Instant XBMC by Rajesh Gunasundaram
Cover of the book Puppet 5 Beginner's Guide - Third Edition by Rajesh Gunasundaram
Cover of the book Scala Data Analysis Cookbook by Rajesh Gunasundaram
Cover of the book Microsoft System Center Data Protection Manager Cookbook by Rajesh Gunasundaram
Cover of the book Bitcoin Essentials by Rajesh Gunasundaram
Cover of the book Python 3 Web Development Beginner's Guide by Rajesh Gunasundaram
Cover of the book Learning Unity 2D Game Development by Example by Rajesh Gunasundaram
Cover of the book Tcl/Tk 8.5 Programming Cookbook by Rajesh Gunasundaram
Cover of the book Arduino iOS Blueprints by Rajesh Gunasundaram
Cover of the book Building Websites with DotNetNuke 5 by Rajesh Gunasundaram
Cover of the book Simulation for Data Science with R by Rajesh Gunasundaram
Cover of the book Distributed Computing with Go by Rajesh Gunasundaram
Cover of the book Getting Started with LevelDB by Rajesh Gunasundaram
We use our own "cookies" and third party cookies to improve services and to see statistical information. By using this website, you agree to our Privacy Policy