How do I setup a redirect URI for my Azure App that has a wildcard/allows parameters?

Joseph Wylie 25 Reputation points
2023-08-24T13:42:58.1066667+00:00

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?

Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
5,485 questions
0 comments No comments
{count} votes