Register an Application in Azure AD B2C
1. In the Microsoft Azure portal, log in to a B2C tenant as the Global Administrator.
2. Under the Azure services menu, click Azure AD B2C.
3. From the left pane, select App registrations and click New registration.
4. On the Register an application page, perform the following steps:
◦ In the Supported account types field, select Accounts in any identity provider or organizational directory (for authenticating users with user flows).
◦ In the Redirect URI (recommended) field, add a redirect URI of type "Web" with the following value: https://<Host>:<port>/Thingworx/oidc/SSO
◦ In the Permissions field, make sure that the Grant admin consent to openid and offline_access permissions checkbox is selected.
5. Click Register.