This sample showing how to validate tokens in a backend service was now archived.
Please go to https://github.com/Azure-Samples/active-directory-dotnet-native-aspnetcore-v2 to find how to protect web APIs.
If you really want to see this sample, just look at the master branch.