Skip to content

Commit

Permalink
Refactor Google Calendar service account configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mkokio committed Dec 6, 2023
1 parent eb85589 commit 114e975
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions config/google-calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,21 @@
* Authenticate using a service account.
*/
'service_account' => [
'service_account' => [
'credentials_json' => [
'type' => env('GOOGLE_SERVICE_ACCOUNT_TYPE'),
'project_id' => env('GOOGLE_SERVICE_ACCOUNT_PROJECT_ID'),
'private_key_id' => env('GOOGLE_PRIVATE_KEY_ID'),
'private_key' => str_replace("\\n", "\n", env('GOOGLE_PRIVATE_KEY')),
'client_email' => env('GOOGLE_SERVICE_ACCOUNT_CLIENT_EMAIL'),
'client_id' => env('GOOGLE_SERVICE_ACCOUNT_CLIENT_ID'),
'auth_uri' => env('GOOGLE_AUTH_URI'),
'token_uri' => env('GOOGLE_TOKEN_URI'),
'auth_provider_x509_cert_url' => env('GOOGLE_AUTH_PROVIDER_CERT_URL'),
'client_x509_cert_url' => env('GOOGLE_CLIENT_CERT_URL'),
'universe_domain' => env('GOOGLE_UNIVERSE_DOMAIN'),
],
'credentials_json' => [
'type' => env('GOOGLE_SERVICE_ACCOUNT_TYPE'),
'project_id' => env('GOOGLE_SERVICE_ACCOUNT_PROJECT_ID'),
'private_key_id' => env('GOOGLE_PRIVATE_KEY_ID'),
'private_key' => str_replace("\\n", "\n", env('GOOGLE_PRIVATE_KEY')),
'client_email' => env('GOOGLE_SERVICE_ACCOUNT_CLIENT_EMAIL'),
'client_id' => env('GOOGLE_SERVICE_ACCOUNT_CLIENT_ID'),
'auth_uri' => env('GOOGLE_AUTH_URI'),
'token_uri' => env('GOOGLE_TOKEN_URI'),
'auth_provider_x509_cert_url' => env('GOOGLE_AUTH_PROVIDER_CERT_URL'),
'client_x509_cert_url' => env('GOOGLE_CLIENT_CERT_URL'),
'universe_domain' => env('GOOGLE_UNIVERSE_DOMAIN'),
],
],

/*
* Authenticate with actual google user account.
*/
Expand Down

0 comments on commit 114e975

Please sign in to comment.