@dh83 , It looks like you are accessing the application using the URL: http://127.0.0.1:5000 in the browser, because of which the redirect URI is getting changed as http://127.0.0.1:5000/getAToken . Since this entry is not present in your Redirect URI configuration in AAD App Registration, hence that Reply URL mismatch error.
Now you have two ways to fix this access the application using http://localhost:5000
Hope this helps.
Do let us know if this helps and if there are any more queries around this, please do let us know so that we can help you further. Also, please do not forget to accept the response as Answer; if the above response helped in answering your query.