Skip to content

Conversation

@Anpopela-Xbox
Copy link
Contributor

During authentication not all available information is stored in the user identity/the service principal. Normally ASP.NET stores the full authentication result (AuthenticateResult) in a feature via HttpContext.Features. This PR adds support for storing the authenticate result in the HttpContext. This should promote maximum compatibility with other authentication/authorization middleware designed to use these features.

The AuthenticateResult is also stored in the FunctionContext for ease of use.

Tests were added and I believe I emulated the style okish. Please feel free to point out anything I missed!

@artmasa artmasa merged commit 20483e1 into dark-loop:master Jul 19, 2024
@artmasa
Copy link
Contributor

artmasa commented Jul 19, 2024

@Anpopela-Xbox, thanks for this contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants