Skip to content

Commit aab3379

Browse files
authored
Merging changes with master. (#553)
1 parent fc9b65e commit aab3379

File tree

10 files changed

+3937
-3921
lines changed

10 files changed

+3937
-3921
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,3 @@ language: node_js
22
node_js:
33
- "10"
44
- "8"
5-
- "7"
6-
- "6"

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
-
44

5+
# v8.0.0
6+
7+
- [changed] Dropped support for Node 6. Developers must use Node 8.13.0 or
8+
higher.
9+
- [changed] Upgraded Cloud Firestore client to v2.0.0.
10+
11+
# v7.4.0
12+
13+
- [changed] Upgraded Cloud Firestore client to v1.3.0.
14+
515
# v7.3.0
616

717
- [feature] Added the provider config management APIs for managing OIDC and SAML

CONTRIBUTING.md

Lines changed: 33 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ information on using pull requests.
8585

8686
## <a name="local-setup"></a>Need to get set up locally?
8787

88+
### Prerequisites
89+
90+
1. Node.js 8.13.0 or higher.
91+
2. NPM 5 or higher (NPM 6 recommended).
92+
3. Google Cloud SDK ([`gcloud`](https://cloud.google.com/sdk/downloads) utility)
93+
8894
### Initial Setup
8995

9096
Run the following commands from the command line to get your local environment set up:
@@ -95,9 +101,8 @@ $ cd firebase-admin-node # go to the firebase-admin-node directory
95101
$ npm install # install local npm build / test dependencies
96102
```
97103

98-
In order to run the tests, you also need to
99-
[download the `gcloud` CLI](https://cloud.google.com/sdk/downloads), run the following command, and
100-
follow the prompts:
104+
In order to run the tests, you also need to authorize the `gcloud` utility with
105+
Google application default credentials:
101106

102107
```bash
103108
$ gcloud beta auth application-default login
@@ -130,19 +135,31 @@ If you wish to skip the linter, and only run the unit tests:
130135
$ npm run test:unit
131136
```
132137

133-
The integration test suite requires a service account JSON key file, and an API key for a Firebase
134-
project. Create a new project in the [Firebase console](https://console.firebase.google.com) if
135-
you do not already have one. Use a separate, dedicated project for integration tests since the
136-
test suite makes a large number of writes to the Firebase realtime database. Download the service
137-
account key file from the "Settings > Service Accounts" page of the project, and copy it to
138-
`test/resources/key.json`. Also obtain the API key for the same project from "Settings > General",
139-
and save it to `test/resources/apikey.txt`.
140-
141-
Some Auth integration tests require that you enable the IAM API for your Firebase/GCP project,
142-
and grant your service account ID the "Service Account Token Creator" role. These must be done
143-
via the Google Cloud Console. Refer to the
144-
[troubleshooting instructions](https://firebase.google.com/docs/auth/admin/create-custom-tokens#troubleshooting)
145-
in the official documentation for more details on how to achieve this.
138+
The integration tests run against an actual Firebase project. Create a new
139+
project in the [Firebase Console](https://console.firebase.google.com), if you
140+
do not already have one suitable for running the tests against. Then obtain the
141+
following credentials from the project:
142+
143+
1. *Service account certificate*: This can be downloaded as a JSON file from
144+
the "Settings > Service Accounts" tab of the Firebase console. Copy the
145+
file into the repo so it's available at `test/resources/key.json`.
146+
2. *Web API key*: This is displayed in the "Settings > General" tab of the
147+
console. Copy it and save to a new text file at `test/resources/apikey.txt`.
148+
149+
Then set up your Firebase/GCP project as follows:
150+
151+
1. Enable Firestore: Go to the Firebase Console, and select "Database" from
152+
the "Develop" menu. Click on the "Create database" button. You may choose
153+
to set up Firestore either in the locked mode or in the test mode.
154+
2. Enable password auth: Select "Authentication" from the "Develop" menu in
155+
Firebase Console. Select the "Sign-in method" tab, and enable the
156+
"Email/Password" sign-in method.
157+
3. Enable the IAM API: Go to the
158+
[Google Cloud Platform Console](https://console.cloud.google.com) and make
159+
sure your Firebase/GCP project is selected. Select "APIs & Services >
160+
Dashboard" from the main menu, and click the "ENABLE APIS AND SERVICES"
161+
button. Search for and enable the "Identity and Access Management (IAM)
162+
API".
146163

147164
Finally, to run the integration test suite:
148165

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ requests, code review feedback, and also pull requests.
5555

5656
## Supported Environments
5757

58-
We support Node.js 6.0 and higher. Please note that the Admin SDK should only
58+
We support Node.js 8.13.0 and higher.
59+
60+
Please also note that the Admin SDK should only
5961
be used in server-side/back-end environments controlled by the app developer.
6062
This includes most server and serverless platforms (both on-premise and in
6163
the cloud). It is not recommended to use the Admin SDK in client-side

0 commit comments

Comments
 (0)