Call a Protected API from a .NET MAUI App

a few more notes for the updates to the blogs / tutorials:

i think that several of the downloadable maui demo apps have the same or nearly the same project names and the also seem to use the same sample redirect uri of myapp://callback/

IF a developer downloads and runs more than one of them and leaves the uri the same then windows may not know which maui app to run and may ask the user which one to open…

if that starts to happen it may keep going to the wrong app.

  1. name the demo apps differently for each blog post.
  2. give each demo app a different callback uri prefix / scheme name like demo1:// demo2:// and so on.
  3. add a note to the blog that if you have multiple maui applications that the call back needs to have a unique name for each app or this can and will happen.

took me a few minutes to figure this out…