dariogriffo / ApiKeySample

An API Key api authentication/authorization example
83 stars 26 forks source link

AuthenticationShortCircuitMiddleware fails when authenticated #1

Closed peterneave closed 1 year ago

peterneave commented 1 year ago

This fixes error in AuthenticationShortCircuitMiddleware System.InvalidOperationException: StatusCode cannot be set because the response has already started. when user is authenticated.