Hi @Sonam K
Thank you for posting this in Microsoft Q&A.
I understand that you have created multi-tenant application in azure ad b2c but while using Microsoft accounts you are getting error "AADB2C9028 - encountered an 'invalid_client' error connecting to the identity provider. Please try again later".
The error message "invalid_client" usually indicates that the client ID or client secret is incorrect or has expired. To resolve this issue, you can try the following steps:
- Verify the client ID and client secret in your Azure AD B2C policy to ensure they are correct and have not expired. You can locate the client ID and client secret in the "Keys" section of your Azure AD B2C application registration.
- Check the expiration date of the client secret. If the client secret has expired, you will need to generate a new one and update your Azure AD B2C policy with the new value.
- . Can you check metadata URL in the configuration of Identity Provider. The format of the metadata URL is similar to
https://login.microsoftonline.com/your-tenant/v2.0/.well-known/openid-configuration
, whereyour-tenant
is your Microsoft Entra tenant name.
For your reference: Setup multitenant application in Azure AD B2C
Hope this helps. Do let us know if you any further queries.
Thanks,
Navya.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.