How do I setup a redirect URI for my Azure App that has a wildcard/allows parameters?
I am trying to build an application within NetSuite, using SuiteScript to allow a company to access files in their OneDrive account.
I am currently using OAUTH2 to authenticate the users Microsoft account. However, the redirect URI that I would ideally use is custom to each NetSuite account and it also requires URL parameters. Azure will not allow me to call a redirect URL that has not been pre-defined and it wont let me pre-define one with wildcards or with URL parameters.
This would be the ideal redirect URI:
https://{accountId}.app.netsuite.com/app/site/hosting/scriptlet.nl?script={scriptId}&deploy={deploymentId}
Is this possible or are there any other ways of authenticating the users Microsoft account?