StackOverflow Questions for Tag: httpcontext

user15716642
user15716642

Reputation: 560

Since Blazor (server) apps should not use IHttpContextAccessor, how can we read this information in an IAuthorizationHandler?

Score: 2

Views: 2654

Answers: 2

Read More
Noah Ispas
Noah Ispas

Reputation: 180

Using HttpContext.GetTokenAsync in C# Unit Tests

Score: 6

Views: 8532

Answers: 4

Read More
Yisroel M. Olewski
Yisroel M. Olewski

Reputation: 1628

How can I access session data in ASP.NET Core 7 MVC?

Score: 1

Views: 115

Answers: 2

Read More
paultechguy
paultechguy

Reputation: 2528

.NET Blazor 9: Capture client ip address

Score: 0

Views: 182

Answers: 2

Read More
Laende
Laende

Reputation: 197

httpcontext returns user identity as null even if user is logged in, trying to set authenticationfilter for hangfire

Score: 1

Views: 1687

Answers: 1

Read More
JamesB
JamesB

Reputation: 325

Should IHttpContextAccessor be avoided? Getting user information into a DI service

Score: 5

Views: 1355

Answers: 3

Read More
Asad Koths
Asad Koths

Reputation: 91

HttpContextToken always false while using HttpInterceptorFn

Score: 1

Views: 55

Answers: 1

Read More
harish Sehwag
harish Sehwag

Reputation: 3

Trying to Access HttpContext in ActionFilterAttribute

Score: 0

Views: 28

Answers: 1

Read More
Vitalii Isaenko
Vitalii Isaenko

Reputation: 999

Access to HttpContext via static class works "correctly" with different requests

Score: 4

Views: 8230

Answers: 2

Read More
nim
nim

Reputation: 57

Is it safe to access a request's HttpContext inside of a custom AuthenticationStateProvider in a Blazor Web App with Interactive rendering?

Score: 0

Views: 85

Answers: 1

Read More
John
John

Reputation: 76

Blazor (Interactive server) cookie authentication: user identity is lost after LocalRedirect from Razor page

Score: 0

Views: 187

Answers: 1

Read More
kaz00ie
kaz00ie

Reputation: 23

Replace or remove and add new session cookies

Score: 0

Views: 25

Answers: 0

Read More
Kristijan Nikoloski
Kristijan Nikoloski

Reputation: 65

How to pass the current URL to SignalR Hub in .NET Core when using WebSockets?

Score: 1

Views: 63

Answers: 1

Read More
Hopeless
Hopeless

Reputation: 4773

Why is the HttpContextHolder needed when implementing the HttpContextAccessor based on AsyncLocal?

Score: 7

Views: 917

Answers: 1

Read More
Timothy Dooling
Timothy Dooling

Reputation: 500

How do I replace HttpContext.Current in .NET Framework 4.5.2?

Score: 0

Views: 73

Answers: 0

Read More
cookieMonster
cookieMonster

Reputation: 597

Why Visual Studio is telling me to replace argument with HttpContext when I use TypedResults.NotFound?

Score: 3

Views: 193

Answers: 1

Read More
Patrice Manac'h
Patrice Manac'h

Reputation: 81

HttpContext in .Net 8.0

Score: 6

Views: 10811

Answers: 3

Read More
tony
tony

Reputation: 1

Handling HttpContext.Session between .NET 8 and .NET Standard 2.0

Score: 0

Views: 758

Answers: 1

Read More
steffiereggie
steffiereggie

Reputation: 55

How unique is HttpContext's ConnectionInfo ID?

Score: 0

Views: 23

Answers: 0

Read More
Oluwafemi
Oluwafemi

Reputation: 14899

How to setup Request.Header in FakeHttpContext for Unit Testing

Score: 18

Views: 41914

Answers: 4

Read More
PreviousPage 1Next