]> Raphaël G. Git Repositories - airlibre/commitdiff
Readd config packages google api-client yaml file
authorRaphaël Gertz <git@rapsys.eu>
Tue, 27 Feb 2024 10:56:19 +0000 (11:56 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Tue, 27 Feb 2024 10:56:19 +0000 (11:56 +0100)
config/packages/google_apiclient.yaml [new file with mode: 0644]

diff --git a/config/packages/google_apiclient.yaml b/config/packages/google_apiclient.yaml
new file mode 100644 (file)
index 0000000..70b4b80
--- /dev/null
@@ -0,0 +1,11 @@
+services:
+    Google\Client:
+        class: Google\Client
+        calls:
+            # Authentication with "API key"
+            - [setDeveloperKey, ['%env(GOOGLE_API_KEY)%']]
+            # Authentication with "OAuth 2.0" using Client ID & Secret
+            - [setClientId, ['%env(GOOGLE_CLIENT_ID)%']]
+            - [setClientSecret, ['%env(GOOGLE_CLIENT_SECRET)%']]
+            # Authentication with "OAuth 2.0" or "Service account" using JSON
+            - [setAuthConfig, ['%env(resolve:GOOGLE_AUTH_CONFIG)%']]