Skip to content

Set the AuthenticationResult via a new feature on the HttpContext #20847

Closed
@davidfowl

Description

@davidfowl

Today the authentication middleware resolved the AuthenticateResult for the current request/endpoint and stores the Principal on the HttpContext but doesn't store the other properties (Ticket, or AuthenticationProperties). Getting at these requires another call to AuthenticateAsync with the right scheme which can be a pain to get at. We should make this available via a feature on the HttpContext

cc @Tratcher @HaoK

Metadata

Metadata

Assignees

Labels

area-authIncludes: Authn, Authz, OAuth, OIDC, Bearer

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions