webView for B2C or MSAL in react-native application

Sultan Dilawar Ali 1 Reputation point
2021-02-24T10:59:17.623+00:00

i an trying to use webView in my react-native application for the azure b2c
and trying to use custom policies with some custom view it is working for the some lib with browser open but i want to use webView as it is requirement for my application
i know it is possible but not sure how do it from start
can you guys suggest me some lib or doc for it ?

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,874 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,692 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AmanpreetSingh-MSFT 56,601 Reputation points
    2021-02-25T09:40:04.903+00:00

    Hi @Sultan Dilawar Ali · Thank you for reaching out.

    The URL should look like the one I have mentioned below. I have added line breaks intentionally for easy understanding of the parameters in the URL.

    https://tenant.b2clogin.com/tenant.onmicrosoft.com/oauth2/v2.0/authorize?p=CUSTOM_POLICY_NAME  
    &client_id=myApplicationId  
    &nonce=defaultNonce  
    &redirect_uri=msauth.bundleID://auth  
    &scope=openid%20offline_access  
    &response_type=code  
    &response_mode=query  
    &prompt=login  
    

    In your case, the customPolicy name is incorrectly specified in the URL.

    -----------------------------------------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.