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.

Microsoft Security | Microsoft Entra | Microsoft Entra External ID
Microsoft Security | Microsoft Entra | Microsoft Entra ID
Developer technologies | ASP.NET | Other
0 comments No comments
{count} votes

Accepted answer
  1. Yijing Sun-MSFT 7,096 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 15,491 Reputation points MVP Volunteer Moderator
    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.