discourse/lib/auth
David Taylor e0a6d12c55
Use service account credentials for fetching google hd groups ()
The previous implementation would attempt to fetch groups using the end-user's Google auth token. This only worked for admin accounts, or users with 'delegated' access to the `admin.directory.group.readonly` API.

This commit changes the approach to use a single 'service account' for fetching the groups. This removes the need to add permissions to all regular user accounts. I'll be updating the [meta docs](https://meta.discourse.org/t/226850) with instructions on setting up the service account.

This is technically a breaking change in behavior, but the existing implementation was marked experimental, and is currently unusable in production google workspace environments.
2022-10-13 16:04:42 +01:00
..
auth_provider.rb
authenticator.rb
current_user_provider.rb
default_current_user_provider.rb FIX: Make sure first admin users are added to auto groups () 2022-10-06 15:16:38 +10:00
discord_authenticator.rb
facebook_authenticator.rb
github_authenticator.rb DEV: Upgrade to Rails 7 2022-04-28 11:51:03 +02:00
google_oauth2_authenticator.rb Use service account credentials for fetching google hd groups () 2022-10-13 16:04:42 +01:00
managed_authenticator.rb DEV: Allow ManagedAuthenticator classes to match by username () 2022-10-11 11:25:13 +01:00
result.rb FEATURE: Add fallback to suggested value when auth_overrides_username () 2022-05-04 11:22:09 +01:00
twitter_authenticator.rb