ASP NET CORE 6 API : HOW TO GET USER ID OF CURRENTLY LOGGED IN USER using HTTPCONTEXT - Part 13

Опубликовано: 22 Март 2026
на канале: BugArray
31,011
184

ASP NET CORE 6 API : HOW TO GET USER ID OF CURRENTLY LOGGED IN USER using HTTPCONTEXT

In this video series I am going to go through a step by step process so getting a currently logged in users user ID using the HttpContext.

What to expect from this video :

1. GET request to get a User ID using the request parameter
2. Returning the user ID in a successful response
3. Making use of the HttpContext to get the currently logged in user ID
4. Allowing only authorised users to consume an endpoint

Videos related to TODO APP :
1 . TODO HOME -    • Master Angular as You Build a Fully Functi...  
2. TODO LOGIN and Register -    • TODO APP - CREATING A LOGIN AND REGISTER P...  
3. TODO DATABASE -    • TODO APP - How to Create MS SQL Database U...  
4. TODO ADD and EDIT PAGE -    • TODO APP - ADD AND EDIT PAGE - FRONT-END W...  
5. Hashing Password -    • C# (.NET Core 6) - HOW TO HASH PASSWORD - ...  
6. .NET Core 6 - Web API - User Authentication - Login and Registration Endpoints -    • .NET Core 6 - Web API - User Authenticatio...  
7. .NET Core 6 Web API - Authentication with JSON Web Token (JWT) -    • .NET Core 6 Web API - User Authentication ...  
8. .NET Core Web API CORS Implementation with Angular Application -    • .NET Core Web API CORS Implementation with...  
9. Todo -Angular Authentication (Login and Registration) -    • Todo -Angular Authentication (Login and Re...  
10. TODO APP -USER TASKS (CRUD) - ASP NET Core 6 Web API using Entity Framework(ORM) -    • TODO APP -USER TASKS (CRUD) - ASP NET Core...  

#frontend #angular #authentication