I am attempting to log in to an Azure Active Directory B2C application.
Whenever I access the URL https://login.microsoftonline.com/te/<my_domain>/<my_sign_up_sign_in_policy_name>/oauth2/v2.0/authorize?client_id=<my_client_id>..., I get the following error:
The client id
<my_client_id>specified in the request is not registered in tenant<my_tenant_name>.
Here is some information about my configuration:
In
https://portal.azure.com, I have created the Azure Active Directory B2C tenant which contains the userglobaladmin@<my_domain>.onmicrosoft.com- In order to create the application, I navigated to
https://apps.dev.microsoft.com, logged in as the global admin and created the "Web Portal v2" application following the instructions here
- In order to create the application, I navigated to
I granted Web Portal v2 access to Microsoft Graph but did not grant access to Azure AD Windows Graph API (I didn't see this option anywhere)

I can successfully navigate to
https://portal.azure.com-> Find the Azure AD B2C resource -> Click into it -> Applications. And there is the newly created "Web Portal v2"
My application has been updated with the new ClientId and ClientSecret of "Web Portal v2". However, when I launch the application and click "Login", I get the error. What other configuration am I missing?
Also, I should add that the reason for all of the above configuration is so that I can migrate my application from using Azure AD V1 tokens to Azure AD V2 tokens, which have information in them such as User.Identity.Name, which is a value I use to display the currently logged-in user's name in the top right corner of the application. If there is a different/better way to achieve this then please let me know.

