I'm building an Office.js addin for Word and attempting to use SSO for user logins. I followed the template provided at https://docs.microsoft.com/en-us/office/dev/add-ins/develop/create-sso-office-add-ins-aspnet and finally got it to work on my dev machine. Now I'm trying to deploy it to a server and I'm having problems, most recently AADSTS50011 (invalid redirect). The template specified using localhost:44355 as the host name and port in the redirect URI and (I think) in the Application ID URI in the "Expose an API" page. I have added an extra redirect URI pointing to my test server, but there is no way to add an additional Application ID URI. How should I be managing this? Should I register two apps, one for localhost and one for the server (and then a third for the production server, etc.)? Or is the Application ID URI always supposed to point to the ultimate production address?