keep symfony user directory in sync with google workspace

I apologize if this is the wrong forum for this quesiton.

I want to automatically sync my user list in google workspace (formerly known as google suite, API here https://developers.google.com/admin-sdk/directory/v1/guides/manage-users) with my user list in symfony, and only allow login to symfony using the google login (openId).

I currently use HWI OAuth bundle for the openId in symfony (https://packagist.org/packages/hwi/oauth-bundle) but am open to switching if there is a bundle that better delivers what I am after.

Is it even possible to automatically set up openId connections like this for Google OAuth, or will each user need to manually "connect" their google account to my web application by logging in (is there a way to create the connection/token without logging in to that google account while doing it)?

I’m currently on Symfony 3.4 but aim at upgrading to 4.4 eventually, don’t know if that makes a difference.

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *