discourse/spec/lib/auth
David Taylor e0a6d12c55
Use service account credentials for fetching google hd groups (#18329)
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
..
default_current_user_provider_spec.rb DEV: Avoid configuring Rails configuration in tests (#18499) 2022-10-06 15:45:19 +08:00
discord_authenticator_spec.rb DEV: Use proper wording for contexts in specs 2022-08-04 11:05:02 +02:00
facebook_authenticator_spec.rb DEV: Use proper wording for contexts in specs 2022-08-04 11:05:02 +02:00
github_authenticator_spec.rb DEV: Use proper wording for contexts in specs 2022-08-04 11:05:02 +02:00
google_oauth2_authenticator_spec.rb Use service account credentials for fetching google hd groups (#18329) 2022-10-13 16:04:42 +01:00
managed_authenticator_spec.rb DEV: Allow ManagedAuthenticator classes to match by username (#18517) 2022-10-11 11:25:13 +01:00
result_spec.rb Add RSpec 4 compatibility (#17652) 2022-07-28 10:27:38 +08:00
twitter_authenticator_spec.rb DEV: Use proper wording for contexts in specs 2022-08-04 11:05:02 +02:00