Azure / modern-web-app-pattern-dotnet

The Modern Web App Pattern is a set of objectives to help you apply an iterative change to modernize a cloud deployed monolith. This content builds on the Reliable Web App. This repo contains a reference implementation of a Modern Web App for .NET.
https://aka.ms/eap/mwa/dotnet/doc
MIT License
71 stars 7 forks source link

Fix null reference exception and add user creation #223

Closed KSchlobohm closed 9 months ago

KSchlobohm commented 9 months ago

If there was an error during deployment then the user may have been able to login before the API was successfully started. This causes an error during checkout because of a referential constraint on the User table.

Calling createOrUpdateUser during checkout ensures the integrity of the relationship.