How can i use azure ad b2c in azure function?

Hegel 11 Reputation points
2021-05-10T15:20:24.607+00:00

i want to use azure ad b2c to manage authentication. i searched the internet and find the documents here: https://learn.microsoft.com/en-us/azure/app-service/configure-authentication-provider-aad?toc=/azure/azure-functions/toc.json

but i still do not know how i can use azure ad b2c in my azure functions. For example how can i get the email address of the logined user who send request to the azure function? Thank you!

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Anonymous
    2021-05-10T18:47:33.447+00:00

    Hi @Hegel , have you looked into Application Insights? You can monitor your azure functions this way. Please let me knoe if you have any questions!

    Best,
    James


  2. Indul Hassan 1 Reputation point
    2021-06-19T21:56:07.283+00:00

    Hello Hegel,

    Have you managed to use the filters in AppInsights or used query to find the user or respective information?
    You can add alerts accordingly or may implement some sort of notifications using custom mode.

    With Regards,
    Indul

    0 comments No comments

  3. Vineet Kumar Gupta 161 Reputation points
    2022-04-12T12:15:53.577+00:00

    For authenticating outside user from your domain you can add identity provider in your Azure Function and for while inviting guest account would recommend to create a group and add all your guest users in that group and then add that users group to azure function in *Access Control *
    I hope this will fix the issue .

    0 comments No comments

Your answer

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