Azure / reliable-web-app-pattern-dotnet

The Reliable Web App Pattern is a set of objectives to help your web application converge on the cloud. This repo contains a reference implementation of a reliable web application for .NET.
https://aka.ms/eap/rwa/dotnet/doc
MIT License
374 stars 120 forks source link

Do not override token validation event handler #316

Closed KSchlobohm closed 1 year ago

KSchlobohm commented 1 year ago

Describe the bug The code should not override the token validation event handler that is responsible for validating that the auth token received came from a trusted source with a valid signature that prevents tampering to bypass auth features.

To Reproduce https://github.com/Azure/reliable-web-app-pattern-dotnet/blob/f96ad8fbbb2c99ba49004eeb891d8b5efda8a23a/src/Relecloud.Web/Startup.cs#L226

Expected behavior Assignment of an additional event handler should not replace the existing one.

KSchlobohm commented 1 year ago

migrated to 1852505