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
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
HttpRequestContextEndpointExtensions on Cratis.Arc.Http: SetEndpointMetadata, GetEndpointMetadata, and AllowsAnonymous() on IHttpRequestContext, so an IAuthenticationHandler can tell whether the endpoint it is about to authenticate allows anonymous access (#2706)
Fixed
AuthenticationMiddleware now sets the matched endpoint's metadata on the request context before any IAuthenticationHandler runs, so a handler can check context.AllowsAnonymous() and return AuthenticationResult.Anonymous instead of rejecting - and logging a rejection for - a request the endpoint never required a credential for, such as a Kubernetes health probe (#2706)