As far as I know, that project should work in .NET 8 as well.
I'm afraid you are mixing instructions for configuring an API and an OAuth client application. For example, you don't need ClientId
and ClientSecret
in appsettings.json
to configure the API.
Follow the instructions in this article to test the API (by the way, this is the article attached to that sample project)