Azure B2C Api integration

asked 2022-06-20T21:08:29.917+00:00
Arthur Gharibyan 21 Reputation points

Hi I would like to know if is there a way to use Azure AD b2c with the api approach.
My main goal is to have independent,customizable form on my application but to use AD B2C authentication via api.

Found link above, wanted to check, am I on the right path with this issue, or there is a much better way?

Azure Active Directory External Identities
No comments
{count} votes

Accepted answer
  1. answered 2022-06-21T01:00:01.73+00:00
    Alfredo Revilla (MSFT) 15,561 Reputation points Microsoft Employee

    Hello @Arthur Gharibyan , you can protect both your Web App and Web Api with Azure AD B2C.

    The referenced sample demonstrates how to:

    • Protect your Web Api with Azure AD B2C
    • Obtain an id token and access token from your SPA to gain access to your Api resources.

    The recommended approach involves authenticating interactively trough Azure AD B2C Sign in forms (User Journeys/User Flows/Custom Policies) to obtain the required tokens. Alternatively, but less recommended, you can replace Azure AD B2C Signing journeys with your own using the ROPC flow.

    Let us know if this answer was helpful to you or if you need additional assistance. If it was helpful, please remember to accept it so that others in the community with similar questions can more easily find a solution.

    No comments

0 additional answers

Sort by: Most helpful