AAD from A to Z

Taking you through the technology that is Azure Active Directory.

  • DirSync, AAD Connect, Graph API
  • MFA, App Proxy, RMS, AAD Domain Join
  • And more!

Google IdP

Adding Google as an Identity Provider (IdP) for B2C.

Setting up Google for use as an Identity Provider (IdP)

Once you have a B2C tenant created you will need to have Identity Providers (IdP) configured before you're able to create necessary policies for signing up and in. As the name suggests these are the entities that will provide identiies, like AD/AAD itself would be a in a non-B2C setup. The list of providers is limited at the moment, but will be added to in the future.

This part of the guide covers how to use Google as your IdP.

Navigate to the Google Developers Console: https://console.developers.google.com and create a new project.
AAD B2C - Google IdP Step 1

Make sure you have selected this project and select "Credentials" in the left-hand menu.
AAD B2C - Google IdP Step 2

You need to go to the "Oauth consent screen" tab first and enter a project name. (You can ignore the other settings.)
AAD B2C - Google IdP Step 3

Go back to the "Credentials" tab. There should be a centered dialog box with the option to "Add credentials".
AAD B2C - Google IdP Step 4

Choose the "Oauth 2.0 client ID" option from the dropdown.
AAD B2C - Google IdP Step 5

Next select "Web application" as the type of app.
Enter https://login.microsoftonline.com in the "Authorized redirect URIs" field.

When you click "Create" you will get a client id and a client secret that you need to write down as they will be used when adding the IdP in the Azure portal.
AAD B2C - Google IdP Step 6

You will need to add an additional redirect URI as well, which requires navigating back to the properties of the credential you just created.
This URI should be https://login.microsoftonline.com/te/contosob2c.onmicrosoft.com/oauth2/authresp where contosob2c should be replaced with your tenant's name.

With this in place you are ready to create policies in the Azure portal.

For more information refer to the Oauth 2.0 implementation on the Google side:
https://developers.google.com/identity/protocols/OAuth2

Edit this page on GitHub