Learn how authentication works in SignalR.
- [Instructor] If you're familiar with how to do … authentication and authorization … with a standard ASP.NET MVC application, … you'll be pleased to know that it works pretty much the same … in SignalR hubs as it does in standard MVC controllers. … SignalR doesn't provide and special features … for authentication, instead it just provides access … to the authentication context built into ASP.NET MVC. … Within a hub, you have access to Context.User.Identity, … and this will give you the I identity … of the currently authenticated user. … SignalR also provides an attribute called Authorize, … which lets you restrict access and set authorization roles. … This attribute can be used on a hub … or on an individual method within a hub. … Next up, we'll see how we can use authentication … and authorization to send private messages in Front Chat. … …
Author
Released
3/7/2019- What is SignalR?
- Scaling out an architecture using SignalR
- Adding a SignalR hub and client to an MVC app
- Adding JavaScript code to handle sending chat messages
- Authentication with SignalR
- How SignalR groups work
- Adding chat rooms with groups
Skill Level Intermediate
Duration
Views
Related Courses
-
ASP.NET MVC: HTTP Request Life Cycle
with Janan Siam2h 15m Advanced -
Building React and ASP.NET MVC 5 Applications
with Kazi Nasrat Ali2h 11m Intermediate
-
Introduction
-
1. SignalR Overview and Concepts
-
What is SignalR?1m 15s
-
Hubs2m 31s
-
Clients3m 16s
-
SignalR connection lifetime2m 29s
-
Scaling with SignalR2m 11s
-
-
2. Configuring SignalR in ASP.NET
-
3. Building a Real-Time App with SignalR
-
Sending a new chat message3m 53s
-
4. SignalR Groups
-
How SignalR groups work2m 13s
-
-
5. Authentication with SignalR
-
Conclusion
-
Next steps34s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Authentication with SignalR