Azure AD application node.js login page options with social accounts

Mark 21 Reputation points
2021-04-21T08:28:18.303+00:00

I run example with AD and node.js from doc https://learn.microsoft.com/pl-pl/azure/active-directory/develop/quickstart-v2-nodejs-webapp-msal . It works and I have question. How add login options at login screen to allow user login with their social accounts like Google or Facebook.

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

Accepted answer
  1. AmanpreetSingh-MSFT 56,866 Reputation points Moderator
    2021-04-21T11:06:44.897+00:00

    Hi @Mark · Thank you for reaching out.

    For this purpose, you will need to create self service signup user flow as explained here: https://learn.microsoft.com/en-us/azure/active-directory/external-identities/self-service-sign-up-user-flow

    Refer to below links to configure social Identity Providers:

    1. Google: https://learn.microsoft.com/en-us/azure/active-directory/external-identities/google-federation
    2. Facebook: https://learn.microsoft.com/en-us/azure/active-directory/external-identities/facebook-federation
    3. Microsoft Account: https://learn.microsoft.com/en-us/azure/active-directory/external-identities/microsoft-account

    Add the application, that you have registered in Azure AD for your node.js application, to the user flow. When you will access the application afterwards, you'll get these IDPs by clicking on sign-in options on the sign-in page.

    -----------------------------------------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.
    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Mark 21 Reputation points
    2021-04-21T11:11:23.193+00:00

    @AmanpreetSingh-MSFT great thanks, works.

    0 comments No comments

  2. Mark 21 Reputation points
    2021-04-21T12:20:30.537+00:00

    @AmanpreetSingh-MSFT I have second question. If user loged via Facebook than shown screen about account creation and there are custom atribute added by me like "Room". My question is where values are stored? User was createed his account and I not see this data of custom attributes on user profile in AD Users dashboart.


  3. Mark 21 Reputation points
    2021-04-21T12:59:26.42+00:00

    @AmanpreetSingh-MSFT my second greetings, thanks. it works.

    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.