How can i use azure ad b2c in azure function?

Hegel 6 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.
3,998 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
18,621 questions
0 comments No comments
{count} vote

3 answers

Sort by: Most helpful
  1. James Hamil 20,661 Reputation points Microsoft Employee
    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