I was determined not to add to the multitude of OAuth2 setup issues, but I've hit a wall. The issue that I have is authentication testing fails due to the Redirect URI. On both AAzure and the IdP Config for SMTP, I am using localhost since I am using a non-routable URL. The server name is Helpdesk.mydomain.local (.local TLD).
My Redirects are configured as "http://localhost/api/auth/oauth2" on both sides, but authentication fails with "AADSTS50011: The redirect URI 'http://helpdesk.MYDOMAIN.local/api/auth/oauth2' specified in the request does not match the redirect URIs configured for the application



I'm perusing the link MS listed for the error, but any guidance would be much appreciated.