Sending Azure AD B2C-generated token to Azure API programmatically using Node.js

hampton123 1,175 Reputation points
2023-06-22T21:38:03.56+00:00

I want my users to sign in with Azure AD B2C and send the generated JWT sign-in token directly to my Azure API through Node.js. How can this be achieved programmatically? When a user tries to access the API without logging in, they should be redirected to a sign-in page. Once they sign in, the user should be redirected to the API.

Microsoft Security Microsoft Entra Microsoft Entra External ID
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Akshay-MSFT 17,951 Reputation points Microsoft Employee Moderator
    2023-06-30T05:59:44.6033333+00:00

    @hampton123

    Thank you for posting your query on Microsoft Q&A and patience. From above description I could understand that you want to send your Azure B2C token to an API and then use output from API as claims in your token.

    Please do correct me by responding in the comments section if this is not the case.

    User's image

    Please do let me know if you have any queries.

    Thanks,

    Akshay Kaushik

    Please "Accept the answer" (Yes), and share your feedback if the suggestion answers you’re your query. This will help us and others in the community as well.

    0 comments No comments

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.