How to Capture a Response of the “Azure AD B2C UserFlow” in ASP.NET (.aspx)?

Farhan Khadpolkar 21 Reputation points
2021-06-20T09:25:37.947+00:00

I have created ASP.Net (.aspx page) WebApp. I want to Implement an AzureAD B2C login userflow in that Web Application with .aspx page.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,506 questions
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,908 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,078 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yijing Sun-MSFT 7,086 Reputation points
    2021-06-21T05:36:15.943+00:00

    Hi @Farhan Khadpolkar ,
    You could use follow this to replace your web.config.

    <add key="ida:Tenant" value="<<tenant-name>>" />  
    <add key="ida:ClientId" value="<<applicationid>>" />  
    <add key="ida:AadInstance" value="https://aicdb2c.b2clogin.com/{0}/{1}/v2.0/.well-known/openid-configuration" />  
    <add key="ida:RedirectUri" value="http://localhost:58851/" />  
    <add key="ida:SignUpPolicyId" value="<<signup-policy-name>>" />  
    <add key="ida:SignInPolicyId" value="<<signin-policy-name>>" />  
    <add key="ida:UserProfilePolicyId" value="<<editprofile-policy-name>>" />  
    

    You could refer to below articles:
    https://github.com/Zen3InfoSolutions/B2C-WebForms-DotNet
    https://learn.microsoft.com/en-us/azure/active-directory-b2c/tutorial-register-applications?tabs=app-reg-ga
    Best regards,
    Yijing Sun


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our  documentation  to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. SUNOJ KUMAR YELURU 14,466 Reputation points MVP
    2021-06-20T09:50:45.877+00:00

    Hi @Farhan Khadpolkar

    Refer to the below it will help your request.

    1. https://learn.microsoft.com/en-us/azure/active-directory-b2c/quickstart-web-app-dotnet
    2. https://learn.microsoft.com/en-us/azure/active-directory-b2c/tutorial-web-app-dotnet?tabs=app-reg-ga

    If the Answer is helpful, please click Accept Answer and up-vote, this can be beneficial to other community members.


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.