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
Which Version of Microsoft Identity Web are you using ?
Microsoft Identity Web 0.1.5-preview
Repro
Avoid IHttpContextAccessor as much as possible:
It gives a false sense of security. Everywhere where we can access the HttpContext directly we should do so. It’s not obvious in the multi-threaded methods that they use the HttpContext (which is not thread safe). Hiding that we use it leads to unsafe use.
A lot of time, the HttpContext is passed to access one field. There is a balance between the simple developer experience and
the safety. Secretly accessing the HttpContext is not on the right side of the balance. For instance:
ReplyForbiddenWithWwwAuthenticateHeader should pass in the HttpContext rather than relying on the accessor, it's called directly from a controller anyways (See TokenAcquisition.cs#L506)
requires more spec.
The text was updated successfully, but these errors were encountered:
Which Version of Microsoft Identity Web are you using ?
Microsoft Identity Web 0.1.5-preview
Repro
Avoid IHttpContextAccessor as much as possible:
the safety. Secretly accessing the HttpContext is not on the right side of the balance. For instance:
ReplyForbiddenWithWwwAuthenticateHeader should pass in the HttpContext rather than relying on the accessor, it's called directly from a controller anyways (See TokenAcquisition.cs#L506)
requires more spec.
The text was updated successfully, but these errors were encountered: