You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However AspNetCoreHttpContext doesn't set the UserId or UserEmail and doesn't give access to the underlying HttpContext where we would be able to access them (eg. something like context.User.FindFirst("userId")).
Would it be possible to expose the underlying HttpContext or the User associated with it in AspNetCoreHttpContext or provide a way to set these / customize these? Or am I missing a way to do this that already exists? (I tried searching the repo / googling, but didn't find much).
Thanks!
The text was updated successfully, but these errors were encountered:
Airbrake config
Description
We are looking to set
UserId
andUserEmail
inAspNetCoreHttpContext
or be able to overrideAspNetCoreHttpContext
when usingAirbrakeMiddleware
.We are using https://github.com/airbrake/sharpbrake#aspnet-core-middleware in our Startup we have:
When checking the notice in the filter block,
notice.HttpContext
is aAspNetCoreHttpContext
which is expected, since it is created here:sharpbrake/src/Sharpbrake.Http.Middleware/AirbrakeMiddleware.cs
Line 70 in 5d13403
However
AspNetCoreHttpContext
doesn't set theUserId
orUserEmail
and doesn't give access to the underlyingHttpContext
where we would be able to access them (eg. something likecontext.User.FindFirst("userId")
).Would it be possible to expose the underlying
HttpContext
or theUser
associated with it inAspNetCoreHttpContext
or provide a way to set these / customize these? Or am I missing a way to do this that already exists? (I tried searching the repo / googling, but didn't find much).Thanks!
The text was updated successfully, but these errors were encountered: