Skip to content

Commit 9f9aa5b

Browse files
committed
Disable the configuration to disable auto-discovery
1 parent 1fec178 commit 9f9aa5b

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
## Unreleased
44

55
* Dropped support for Lumen
6+
* The ability to disable credentials auto-discovery has been removed. If you don't want a service account to be
7+
auto-discovered, provide it by setting the `GOOGLE_APPLICATION_CREDENTIALS` environment variable or by adapting
8+
the package configuration.
69

710
## 4.2.0 - 2022-07-28
811

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ For server-to-server communication this is done with a Service Account.
3131
The package uses auto discovery for the default project to find the credentials needed for authenticating requests to
3232
the Firebase APIs by inspecting certain environment variables and looking into Google's well known path(s).
3333

34+
If you don't want a service account to be auto-discovered, provide it by setting the `GOOGLE_APPLICATION_CREDENTIALS`
35+
environment variable or by adapting the package configuration.
36+
3437
If you don't already have generated a Service Account, you can do so by following the instructions from the
3538
official documentation pages at https://firebase.google.com/docs/admin/setup#initialize_the_sdk.
3639

@@ -39,8 +42,6 @@ environment variables starting with `FIREBASE_` in your `.env` file. Usually, th
3942
required for the package to work:
4043

4144
```
42-
# relative or full path to the Service Account JSON file
43-
FIREBASE_CREDENTIALS=
4445
# You can find the database URL for your project at
4546
# https://console.firebase.google.com/project/_/database
4647
FIREBASE_DATABASE_URL=https://<your-project>.firebaseio.com

config/firebase.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,6 @@
4848
*/
4949
'credentials' => [
5050
'file' => env('FIREBASE_CREDENTIALS', env('GOOGLE_APPLICATION_CREDENTIALS')),
51-
52-
/*
53-
* If you want to prevent the auto discovery of credentials, set the
54-
* following parameter to false. If you disable it, you must
55-
* provide a credentials file.
56-
*/
57-
'auto_discovery' => true,
5851
],
5952

6053
/*
@@ -153,7 +146,7 @@
153146
* Log channels are defined in config/logging.php
154147
*
155148
* Successful HTTP messages are logged with the log level 'info'.
156-
* Failed HTTP messages are logged with the the log level 'notice'.
149+
* Failed HTTP messages are logged with the log level 'notice'.
157150
*
158151
* Note: Using the same channel for simple and debug logs will result in
159152
* two entries per request and response.

0 commit comments

Comments
 (0)