Chapter 6. Security

This chapter will cover how you can secure your SignalR connections, which require authentication and authorization from the client, and also how you can communicate this back to the client in a graceful manner.

In this chapter, we will cover the following topics:

  • General infrastructure needed to secure any web application
  • Creating a login page and using AJAX calls to perform the actual login
  • How to keep users' authentication for your connection
  • How to have a specific role for your connection

At this stage, the developer should be familiar with securing their SignalR connections.

Locking things down

Security is something all applications need to have a relationship with, in one way or another. For instance, let's look at the type of ...

Get SignalR - Real-time Application Development - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.