Search code examples
google-apiazure-ad-b2cgoogle-my-business-api

Azure AD B2C & Google APIs


I need help integrating Azure AD B2C and Google APIs. Briefly, I created a tenant on Azure AD B2C, policies and a Native App. Users can register to my app and sign in without any problems. Now I need to use Google APIs to access the logged-in account's information and manage some information (Google MyBusiness data). How can I achieve that. Is that possible ?

Furthermore, even if that is not connected to Azure AD B2C, how can I request to the user to accept that my app to view MyBusiness data?

UPDATE: I understand that I need to authorize my app to https://www.googleapis.com/auth/plus.business.manage Google scopes. Is it possible to request that scope during Google SignIn application authorization process?

Thanks everyone.


Solution

  • From the official Azure AD B2C FAQ:

    https://learn.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-faqs

    Can I configure scopes to gather more information about consumers from various social identity providers?

    No, but this feature is on our roadmap. The default scopes used for our supported set of social identity providers are:

    • Facebook: email
    • Google+: email
    • Microsoft account: openid email profile
    • Amazon: profile
    • LinkedIn: r_emailaddress, r_basicprofile