Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Building RESTful Web Services with .NET Core
  • Table Of Contents Toc
  • Feedback & Rating feedback
Building RESTful Web Services with .NET Core

Building RESTful Web Services with .NET Core

By : Bhattacharya, Gaurav Aroraa, Tadit Dash
2.7 (6)
close
close
Building RESTful Web Services with .NET Core

Building RESTful Web Services with .NET Core

2.7 (6)
By: Bhattacharya, Gaurav Aroraa, Tadit Dash

Overview of this book

REST is an architectural style that tackles the challenges of building scalable web services. In today's connected world, APIs have taken a central role on the web. APIs provide the fabric through which systems interact, and REST has become synonymous with APIs. The depth, breadth, and ease of use of ASP.NET Core makes it a breeze for developers to work with for building robust web APIs. This book takes you through the design of RESTful web services and leverages the ASP.NET Core framework to implement these services. This book begins by introducing you to the basics of the philosophy behind REST. You'll go through the steps of designing and implementing an enterprise-grade RESTful web service. This book takes a practical approach, that you can apply to your own circumstances. This book brings forth the power of the latest .NET Core release, working with MVC. Later, you will learn about the use of the framework to explore approaches to tackle resilience, security, and scalability concerns. You will explore the steps to improve the performance of your applications. You'll also learn techniques to deal with security in web APIs and discover how to implement unit and integration test strategies. By the end of the book, you will have a complete understanding of Building a client for RESTful web services, along with some scaling techniques.
Table of Contents (13 chapters)
close
close

Adding OAuth 2.0 authentication to our service

OAuth is an open standard used by APIs to control access to the resources by clients, such as websites, desktop applications, or even other APIs. However, the API implementing OAuth can provide user information without sharing the password with third-party apps.

You must have seen websites where they allow logins using different services, such as Facebook, Twitter, or Google, saying something such as (for Facebook) Login with Facebook. That means Facebook has an OAuth server that would validate your app by a certain identity that you have provided to Facebook earlier, and give you an access token that would have some validity. Using that token, you can read the required user's profile.

The following is some basic OAuth2.0 terminology:

  • Resource: We have already defined this in previous chapters. Resources are the things that...
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Building RESTful Web Services with .NET Core
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon